[问题] docker 透过 pppoe 取得实体ip

楼主: gigigigi (gigigigi)   2016-09-15 22:40:28
我想在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
是要带特殊参数才可以嘛?
谢谢
作者: tjjh89017 (伊达政宗)   2016-09-15 22:53:00
docker用iptable达成NAT的功能(默认)所以是直接用你的原本的网卡网络,除非你另外加上新的netns,让它可以有一张网卡
作者: danny8376 (钓到一只猴子@_@)   2016-09-15 23:14:00
docker要pppoe得要操作netns新增一张bridge外网的网卡然后/dev/ppp要挂进去&要给NET_ADMIN cap这些都弄好应该pppoe就没问题了wBTW要没效率一点pppoe-relay也是可以w不过/dev/ppp&NET_ADMIN还是必须的

Links booklink

Contact Us: admin [ a t ] ucptt.com