[问题] Ubuntu PPPoE interface name

楼主: Johnnyvip   2016-07-13 12:20:19
请问大家
我的主机上面有三张网卡 分别为 eth0 eth1 eth2
eth0 连内部网络
eth1 eth2 接中华调制解调器
eth1 PPPoE固定IP ppp0
eth2 PPPoE浮动IP ppp1
手动连线 我是先 pon static 再 pon dynamic
这样 ppp0会是取得固定IP ppp1 取得浮动IP
但是自动断线重连之后
变成ppp0会取得浮动IP ppp1 取得固定IP
请问要如何固定PPPoE interface名称?
如 pon dynamic 只会产生ppp1 interface
pon static 只会产生ppp0 interface
可以用70-persistent-net.rules设定吗?
/etc/network/interface 设定档
auto ppp0
iface ppp0 inet ppp
pre-up /sbin/ifconfig eth1 up # line maintained by pppoeconf
provider static
auto ppp1
iface ppp1 inet ppp
pre-up /sbin/ifconfig eth2 up # line maintained by pppoeconf
provider dynamic

Links booklink

Contact Us: admin [ a t ] ucptt.com