跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[程序员] 家里的 nas 遇到个 pppoe 拨号问题和容器网络相关

发表于
nas 上有两个网口,对应系统网卡 enp1s0 和 enp3s0
都是直连光猫进行 pppoe 拨号,系统拨号之后,查看 ifconfig 会多出两个 ppp0 和 ppp1 的虚拟网卡,用 curl 指定这两个虚拟网卡都可以请求通并且外网的 ip 也把一致
现在我的 docker 里有两个服务程序,我想让容器 A 走 ppp0 的流量,容器 B 走 ppp1 的流量,
尝试过 docker 自带的 macvlan 网络模式,但是不知道是不是因为 ppp0/1 是虚拟出来的原因好像不支持一直报错 Error response from daemon: failed to create the macvlan port: invalid argument.
另外试过 iptable 规则好像也没啥效果
这种情况下还有什么更好的解决方案

Featured Replies

No posts to show

创建帐户或登录来提出意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.