简体   繁体   English

使用 VLAN 配置设置 pppoe

[英]pppoe set up with VLAN configuration

I had a server which has pppoe configurated, it worked perfectly with my iptables rules.我有一台配置了 pppoe 的服务器,它与我的 iptables 规则完美配合。 Then few days ago, I switched to new ISP, they brought me to problem with VLAN configuration.然后几天前,我切换到新的 ISP,他们给我带来了 VLAN 配置问题。

They told me if I want to use my gateway server, I have to active VLAN0 or VLAN1 working with pppoe or I must use their modem which is already set up.他们告诉我,如果我想使用我的网关服务器,我必须使用 pppoe 激活 VLAN0 或 VLAN1,或者我必须使用他们已经设置的调制解调器。

Here my config:这是我的配置:

  • eno1 interface for LAN. LAN 的 eno1 接口。
  • enp2s0f0 interface for pppoe (WAN) which is used by ppp0 interface after I run pppoe-setup. pppoe (WAN) 的 enp2s0f0 接口,在我运行 pppoe-setup 后由 ppp0 接口使用。

The ppp0 interface error log running with new ISP:使用新 ISP 运行的 ppp0 接口错误日志:

Feb 24 10:13:00 sB pppd[6074]: LCP: timeout sending Config-Requests 2 月 24 日 10:13:00 sB pppd[6074]:LCP:发送配置请求超时

Feb 24 10:13:00 sB pppd[6074]: Connection terminated. 2 月 24 日 10:13:00 sB pppd[6074]:连接终止。

Feb 24 10:13:00 sB pppd[6074]: Modem hangup 2 月 24 日 10:13:00 sB pppd[6074]:调制解调器挂断

Please help me set up my server running pppoe with vlan.请帮助我设置运行 pppoe 与 vlan 的服务器。

Thank you.谢谢你。

I did solve it.我确实解决了。

All I had to do was creating a new interface which has type as VLAN and vlan id matches to vlan id of the provider, then rerun pppoe-setup configured to that interface.我所要做的就是创建一个新的接口,它的类型为 VLAN 并且 vlan id 与提供者的 vlan id 匹配,然后重新运行配置到该接口的 pppoe-setup。 Sometimes the conversation between client and server has a little delay so we need to patient if the connection terminated, just retry couple times before we know it completely failed.有时客户端和服务器之间的对话会有一点延迟,所以如果连接终止,我们需要耐心等待,在我们知道它完全失败之前重试几次。

Hope it helps.希望能帮助到你。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM