docker 透過 pppoe 取得實體ip - Linux

Table of Contents

我想在docker 秀過 pppoeconf 想設定撥接帳號密碼

可是出現下面訊息

Sorry, I scanned 1 interface, but the Access
Concentrator of your provider did not respond. Please
check your network and modem cables. Another reason for
the scan failure may also be another running pppoe
process which controls the modem.


sudo docker run -t -i ubuntu:12.04 bash // 我是這樣啟動ubuntu 12.04 image

是要帶特殊參數才可以嘛?

謝謝

--

All Comments

James avatarJames2016-09-18
docker用iptable達成NAT的功能(預設)
所以是直接用你的原本的網卡網路,除非你另外加上
Kyle avatarKyle2016-09-19
新的netns,讓它可以有一張網卡
Susan avatarSusan2016-09-20
docker要pppoe得要操作netns新增一張bridge外網的網卡
Lauren avatarLauren2016-09-24
然後/dev/ppp要掛進去&要給NET_ADMIN cap
這些都弄好應該pppoe就沒問題了w
BTW要沒效率一點pppoe-relay也是可以w
Freda avatarFreda2016-09-27
不過/dev/ppp&NET_ADMIN還是必須的