Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IP地址脚本化 #2

Open
sunflyer opened this issue Oct 19, 2015 · 1 comment
Open

IP地址脚本化 #2

sunflyer opened this issue Oct 19, 2015 · 1 comment

Comments

@sunflyer
Copy link

pppoe连接建立后,系统自动调用/etc/ppp/ip-up脚本。
其参数如下面文件所示,第4个参数是系统获得的动态ip。

Script which handles the routing issues as necessary for pppd
Only the link to Newman requires this handling.
When the ppp link comes up, this script is called with the following
parameters
$1 the interface name used by pppd (e.g. ppp3)
$2 the tty device name
$3 the tty device speed
$4 the local IP address for the interface
$5 the remote IP address
$6 the parameter specified by the 'ipparam' option to pppd

@sunflyer
Copy link
Author

$4应该就可以获取到IP地址了,原则上应该不需要自己去做COMMAND

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant