Ubuntu PPPoE interface name - Linux

Table of Contents


請問大家

我的主機上面有三張網卡 分別為 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

--

All Comments