Ubuntu PPPoE interface name - Linux

By Carol
at 2016-07-13T12:20
at 2016-07-13T12:20
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
--
Tags:
Linux
All Comments
Related Posts
readb/readw/readl/readq

By Dinah
at 2016-07-11T21:12
at 2016-07-11T21:12
grep 擷取內容

By Adele
at 2016-07-11T10:32
at 2016-07-11T10:32
讓每個檔案的修改時間差一秒

By Carol
at 2016-07-11T01:34
at 2016-07-11T01:34
讓每個檔案的修改時間差一秒

By Caroline
at 2016-07-11T00:00
at 2016-07-11T00:00
讓每個檔案的修改直接差一秒

By Brianna
at 2016-07-10T10:45
at 2016-07-10T10:45