使用draytek vigor 130 openwrt的沃达丰英国商务宽带

I recently decided that I would get a second fixed broadband line in addition to my existing broadband connection, given my increased working from home pattern per recent world events. Shopping around I found Vodafone Business Broadband a cheap and decent enough package. I decided to go with their Superfast 2 option. This article is intending to be useful for other customers who use Vodafone VDSL but decided they want to bring their own modem to party!

我最近决定,鉴于我在最近的世界大事中增加的在家办公模式,我除了现有的宽带连接外,还将获得第二条固定宽带线路。 到处逛逛,我发现Vodafone Business Broadband既便宜又不错。 我决定选择他们的Superfast 2选项。 本文旨在对使用Vodafone VDSL但决定将自己的调制解调器带到聚会的其他客户很有用!

带上自己的调制解调器(BYOM) (Bringing your own modem (BYOM))

You don’t have to do this, but for my usage and purposes, the Vodafone WiFI Hub (aka the THG3000) isn’t going to cut it, because it lacks any form of bridge mode/modem mode. Regardless I got one anyway. Unfortunately, ever since BT stopped providing and supporting VDSL modems a while ago, the ISPs have had to fill this gap and it’s often the case that such kit is a router/modem combined. Already having an established network setup with an OpenWrt router, I don’t need another router doing NAT, I just want a WAN connection I can hook into an existing router directly, where I can do failover configuration.

您不必执行此操作,但是就我的用途和目的而言,沃达丰WiFI集线器(又名THG3000)不会削减它,因为它缺少任何形式的桥接模式/调制解调器模式。 无论如何我还是得到了一个。 不幸的是,自从BT不久前停止提供和支持VDSL调制解调器以来,ISP就不得不填补这一空白,而且这种套件通常是路由器/调制解调器的组合。 已经使用OpenWrt路由器建立了网络设置,我不需要其他路由器进行NAT,我只希望可以将WAN连接直接挂接到现有路由器上即可在其中进行故障转移配置。

Fortunately, Vodafone is fairly relaxed about using your own modem. The main thing is to ensure it is BT SIN 498 MCT approved. While there isn’t an official list, there are various lists around that mention various third party modems. I chose to use the DrayTek Vigor 130, it has good reviews, it’s literally just a modem with a single ethernet port for the VDSL passthrough and that’s it. Just what I need for this.

幸运的是,沃达丰在使用自己的调制解调器方面相当放松。 最主要的是确保它已通过BT SIN 498 MCT认证。 虽然没有正式的清单,但周围有各种各样的清单提到了各种第三方调制解调器。 我选择使用DrayTek Vigor 130 ,它的评测很好,它实际上只是一个调制解调器,带有用于VDSL直通的单个以太网端口。 正是我需要的。

沃达丰PPPoE凭据 (Vodafone PPPoE credentials)

Vodafone UK uses PPPoE to connect to their broadband network, which requires a username and password. In the earlier days it sounded like customers had trouble getting this information from Vodafone. However, within the first few days of ordering their Superfast 2 business broadband I received an email with my PPPoE username and password without any prompt, so credit to Vodafone here (I don’t know if this is exclusive to business lines though). One thing they should make clear though is for some reason, they have decided to have the username in the email without the ending suffix of either broadband.vodafone.co.ukor businessbroadband.vodafone.co.uk. They do reference the importance of this in the email beforehand (shown below), but sometimes as humans we don’t read things properly and I think there’s a been a lot of users just copying the username without this and having problems. Ideally, the dynamic data in their email template should be concatenating the username and the appropriate suffix as as single string on one line to be very clear here, as it is important!

Vodafone UK使用PPPoE连接到其宽带网络,这需要用户名和密码。 在早期,听起来客户很难从沃达丰获取此信息。 但是,在订购他们的Superfast 2商业宽带的前几天,我收到了一封电子邮件,其中包含我的PPPoE用户名和密码,没有任何提示,因此请在此处注明沃达丰的身份(不过我不知道这是否仅限于商业领域)。 他们应该明确的一件事是由于某种原因,他们决定在电子邮件中使用用户名,但不要以broadband.vodafone.co.uk结尾的后缀为broadband.vodafone.co.ukbusinessbroadband.vodafone.co.uk 他们确实事先在电子邮件中提到了这一点的重要性(如下所示),但是有时由于人类,我们无法正确阅读内容,因此我认为有很多用户只是复制用户名而没有问题,并且出现了问题。 理想情况下,电子邮件模板中的动态数据应将用户名和适当的后缀作为单个字符串连接在一行上,以便在此处非常清楚,因为这很重要!

Vodafone should also fix the typo in their automated email as they are telling users that they should put “@[email protected], which is plain wrong. Fortunately, at least OpenWrt contributors have made this clear for the username and password format for Vodafone UK broadband lines.

沃达丰还应该在自动电子邮件中修正拼写错误,因为他们告诉用户应该输入“ @ broadband @ vodafone.co.uk” ,这是完全错误的。 幸运的是,至少OpenWrt贡献者已经明确了沃达丰英国宽带线路的用户名和密码格式。

使用draytek vigor 130 openwrt的沃达丰英国商务宽带_第1张图片
Vodafone email with PPPoE instructions, where the consumer broadband suffix is incorrect. 带有PPPoE说明的Vodafone电子邮件,其中消费者宽带后缀不正确。

建立联系 (Getting connected)

My residence was pre-wired with a BT line when it was first built back in 2006, but an engineer was automatically assigned to my activation date upon ordering. It turns out Openreach’s system had flagged something on the line. Speaking with the Openreach engineer on the day (who was really friendly and I made sure Openreach knew this through their thank an engineer form), this was due to a HR fault (high resistance, not human resources!). In the end I had my master socket front plate replaced with the NTE5C + Mk4 Faceplate, so no DSL filter needed anymore.

我的住宅在2006年首次建造时就已预先连接了BT线,但是在订购时会自动为我分配激活工程师的日期。 事实证明,Openreach的系统已在线路上标记了某些内容。 当天与Openreach工程师交谈(他非常友好,我确保Openreach通过感谢他们的工程师表格知道这一点),这是由于HR错误(高抵抗力而不是人力资源!)引起的。 最后,我用NTE5C + Mk4面板替换了主插座前面板,因此不再需要DSL过滤器。

The DrayTek Vigor 130, is pretty much setup from powering it on, it has the default IP of 192.168.2.1, which can be changed if needed. In fact you don’t have to change anything, the modem is already in bridge mode.

DrayTek Vigor 130几乎可以通过开机来进行设置,其默认IP为192.168.2.1,可以根据需要进行更改。 实际上,您无需更改任何内容,调制解调器已经处于桥接模式。

I did read that a few people suggested enabling MPoA but I can confirm this is not needed at all. I’m not sure if the UK variant has been specifically configured like this by default.

我确实读过一些人建议启用MPoA 但我可以确认完全不需要。 我不确定是否默认情况下对UK变体进行了专门配置。

The required VLAN tag of 101 is already set too.

所需的VLAN标签101也已设置。

使用draytek vigor 130 openwrt的沃达丰英国商务宽带_第2张图片
VLAN tag of 101 is already set within Internet Access > General Setup 在Internet访问>常规设置中已经设置了101的VLAN标记

Other than changing the default password (which is a good idea as the default is “admin”) and optionally disabling the DHCP server, because it won’t be needed, the only thing to do is plug the DSL connection into the modem and then have an ethernet cable going from the modem into a router. In my case this is going into one of the LAN ports repurposed as a WAN interface by creating a VLAN on my Linksys WRT3200ACM.

除了更改默认密码(这是一个好主意,因为默认密码为“ admin”)并有选择地禁用DHCP服务器(因为不需要)外,唯一要做的就是将DSL连接插入调制解调器,然后有一条以太网电缆从调制解调器连接到路由器。 在我的情况下,这是通过在Linksys WRT3200ACM上创建VLAN进入改用作WAN接口的LAN端口之一。

使用draytek vigor 130 openwrt的沃达丰英国商务宽带_第3张图片
VLAN configuration for having a LAN port as a WAN interface 将LAN端口用作WAN接口的VLAN配置

There’s a couple of new interfaces network within OpenWrt you will want to setup.

您将要在OpenWrt中设置几个新接口网络。

访问调制解调器 (Accessing the modem)

OpenWrt has information on accessing your modem for a variety of cases. In the case of PPPoE it is quite straight forward.

OpenWrt提供有关在各种情况下访问调制解调器的信息。 对于PPPoE,这非常简单。

Whatever interface your modem is connected to (in my case eth0.4), create a new modem interface within /etc/config/network with a static IP within the network range of the modem. Because the Vigor 130 uses 192.168.2.0/24, I have a static IP on the router as 192.168.2.2.

无论您的调制解调器连接到eth0.4接口(在我的示例中为eth0.4 ), eth0.4/etc/config/network使用调制解调器网络范围内的静态IP创建一个新的调制解调器接口。 因为Vigor 130使用192.168.2.0/24,所以我在路由器上有一个静态IP,即192.168.2.2。

config interface 'vigormodem'
option proto 'static'
option ipaddr '192.168.2.2'
option netmask '255.255.255.0'
option ifname 'eth0.4'

Then you can assign the modem interface to WAN zone. You could have a dedicated zone for modems, but then you need to enable interzone forwarding but this will work for the requirements just as well.

然后,您可以将调制解调器接口分配给WAN区域。 您可能有一个用于调制解调器的专用区域,但是随后您需要启用区域间转发,但这也可以满足要求。

Now you can access you modem at all times on the network. While you won’t really be doing too much with the modem as it is simply passing through the VDSL connection, it is useful for being able to check your sync speeds and get more verbose VDSL information. In the case of the Vigor 130 you can use commands like vdsl status which can be entered through the web UI or SSH. If accessing via SSH, you may have to specify the specific host key algorithm as only ssh-dss is offered, which is considered legacy now. This will however allow you to connect via SSH.

现在,您可以随时在网络上访问调制解调器。 尽管调制解调器实际上只是通过VDSL连接,您并不会做太多事情,但它对于检查同步速度并获取更多详细的VDSL信息很有用。 对于Vigor 130,您可以使用vdsl status类的命令,可以通过Web UI或SSH输入。 如果通过SSH访问,则可能必须指定特定的主机密钥算法,因为仅提供了ssh-dss ,现在已将其视为旧版。 但是,这将允许您通过SSH连接。

ssh -oHostKeyAlgorithms=+ssh-dss [email protected]

创建PPPoE接口 (Creating the PPPoE interface)

You will then need to create a PPPoE interface for the actual VDSL connection being passed through over ethernet.

然后,您将需要为通过以太网传递的实际VDSL连接创建PPPoE接口。

config interface 'wanb'
option proto 'pppoe'
option ifname 'eth0.4'
option peerdns '0'
option metric '20'
option ipv6 '1'
option username 'xxxxxxxxxxxx'
option password 'xxxxxxxxxxxxx'

Remembering to use the correct username format as per the PPPoE information mentioned earlier!

记住要按照前面提到的PPPoE信息使用正确的用户名格式!

In my case, I have configured the interface as wanb, as this is an additional internet connection. I will then use mwan3 to do failover if my main internet connection goes down, VDSL can take over. That’s all that’s needed for the PPPoE connection itself. Because I’m on the business broadband line, I have a static IPv4, so I’ll always get the same public IPv4 address. All of the VLAN tag stuff is on the modem side, so we don’t have to worry about that, as we aren’t using a DSL router.

就我而言,我已将接口配置为wanb,因为这是附加的Internet连接。 如果我的主要Internet连接断开,我将使用mwan3进行故障转移,VDSL可以接管。 这就是PPPoE连接本身所需的全部。 因为我在商务宽带线路上,所以我有一个静态IPv4,因此我将始终获得相同的公用IPv4地址。 所有的VLAN标签都在调制解调器端,因此我们不必担心,因为我们没有使用DSL路由器。

Vodafone currently doesn’t have IPv6 enabled on their broadband network but you can leave it enabled if you want, it won’t harm anything (Other than syslog spam with a DHCPv6 permission denied error). I’ve configured an additional alias interface, in the event Vodafone suddenly does go live with it, as I’m all about that IPv6 life. Taking a reasonable guess, it will be likely that you can use DHCPv6 to perform a router solicitation to request a prefix over the PPPoE connection. This is often the case with PPP based connections.

沃达丰目前在其宽带网络上未启用IPv6,但您可以根据需要将其启用,它不会对任何内容造成危害(除了带有DHCPv6权限拒绝错误的syslog垃圾邮件)。 我已经配置了一个额外的别名接口,以防Vodafone突然启用了该接口,因为我完全关心IPv6的生活。 通过合理的猜测,您很可能可以使用DHCPv6执行路由器请求,以请求通过PPPoE连接的前缀。 对于基于PPP的连接,通常是这种情况。

config interface 'wanb6'
option proto 'dhcpv6'
option ifname '@wanb'
option reqaddress 'try'
option metric '2'
option reqprefix '48'

It is currently unknown when Vodafone UK will go live with their IPv6 deployment. It was rumoured to be in Spring 2020, but due to current world events, this could have been delayed. There has been reports from some customers in 2019 and earlier in 2020 noticing at various times Vodafone did seem to be enabling IPv6 on the network but it seemed to be inconsistent and unreliable, so it may not have been a proper rollout, although very brave testing IPv6 on the live network Vodafone!

目前尚不知道沃达丰英国公司何时将其IPv6部署上线。 有传言说这是在2020年Spring,但是由于当前的世界大事,这本来可以推迟的。 有一些客户在2019年和2020年早期的报告指出,沃达丰在各个时间似乎确实在网络上启用了IPv6,但它似乎前后不一致且不可靠,因此尽管测试非常勇敢,但它可能并不是一个合适的部署方案。实时网络Vodafone上的IPv6!

同步速度 (Sync speeds)

Looking at the BT Broadband availability checker it states the maximum of 80 Mbps is available downstream with a maximum of 20 Mbps upstream through FTTC. However, getting this is based on a few factors.

查看BT宽带可用性检查器后,它指出下行可提供最大80 Mbps的带宽,而FTTC可以提供最大20 Mbps的上行带宽。 但是,获得此基于一些因素。

使用draytek vigor 130 openwrt的沃达丰英国商务宽带_第4张图片
BT broadband availability in my area 我所在地区的BT宽带可用性

My average quoted speed from Vodafone is 63 Mbps. Despite what you might read, VDSL does not have a training period (which I mistakenly believed to be the case at first). This is actually only applicable to ADSL (and if you are still stuck on ADSL, my condolences). There is something called Dynamic Line Management (DLM) which is constantly running on VDSL lines to ensure they are performing as best they can while keeping lines within specifications. What can happen though is within the initial period of the line being enabled and connected, DLM may be adjusting your line to find a good profile, so speeds can change, for better or for worse.

我对沃达丰的平均报价是63 Mbps。 尽管您可能会读到什么,但VDSL没有培训期(我一开始误认为是这种情况)。 这实际上仅适用于ADSL(如果您仍然对ADSL感到困惑,请表示哀悼)。 有一种称为动态线路管理(DLM)的东西,它会在VDSL线路上持续运行,以确保它们在保持规范范围内的同时尽其所能。 尽管可能会发生在启用和连接线路的初期,但DLM可能会在调整您的线路以找到良好的配置文件,因此速度可能会有所变化,无论好坏。

On my first sync I was getting around 55 Mbps downstream and 20 Mbps upstream. After a couple of days of my modem being connected, I noticed my downstream had increased to 64 Mbps, which I’m pretty sure was going to be my maximum downstream speed. Looking at the modem stats, this seems to be the case.

第一次同步时,下行速度约为55 Mbps,上行速度约为20 Mbps。 调制解调器连接几天后,我注意到我的下行速度已提高到64 Mbps,我很确定这将是我的最大下行速度。 查看调制解调器的统计数据,似乎是这种情况。

> vdsl status---------------------- ATU-R Info (hw: annex A, f/w: annex A/B/C) -----------
Running Mode : 17A State : SHOWTIME
DS Actual Rate : 64336000 bps US Actual Rate : 20000000 bps
DS Attainable Rate : 64449832 bps US Attainable Rate : 23533040 bps
DS Path Mode : Fast US Path Mode : Fast
DS Interleave Depth : 1 US Interleave Depth : 1
NE Current Attenuation : 13 dB Cur SNR Margin : 6 dB
DS actual PSD : 0. 3 dB US actual PSD : 0. 5 dB
NE CRC Count : 2 FE CRC Count : 134
NE ES Count : 2 FE ES Count : 88
Xdsl Reset Times : 0 Xdsl Link Times : 1
ITU Version[0] : fe004452 ITU Version[1] : 41590000
VDSL Firmware Version : 05-07-06-0D-01-07 [with Vectoring support]
Power Management Mode : DSL_G997_PMS_L0
Test Mode : DISABLE
-------------------------------- ATU-C Info ---------------------------------
Far Current Attenuation : 11 dB Far SNR Margin : 7 dB
CO ITU Version[0] : b5004946 CO ITU Version[1] : 544eb206
DSLAM CHIPSET VENDOR : < IFTN >>

Given my downstream rate and attainable rate are very close, it suggests this is the downstream speed I will be getting.

鉴于我的下游速度和可达到的速度非常接近,这表明这是我将要获得的下游速度。

Looking at the DSLAM Chipset vendor info, it also reveals I’m connecting to an ECI cabinet, which I’ve read can mean slower speeds in some cases compared to some of the Huawei cabinets. This is due to a technology known as G.Inp being deployed in Huawei cabinets as well retransmission (an improved error correction method) that can help increase speeds too. It seems that this it is not used on ECI cabinets because Openreach haven’t really ever got it working well according to various sources.

查看DSLAM芯片组供应商的信息,它还显示我正在连接到ECI机柜,在某些情况下,与某些华为机柜相比,我读到的这可能意味着速度较慢。 这是由于在华为机柜中部署了称为G.Inp的技术以及重新传输(改进的纠错方法),该技术也可以帮助提高速度。 似乎没在ECI机柜上使用它,因为根据各种消息来源,Openreach尚未真正使其运行良好。

I did come across some information about the DrayTek Vigor 130 having an alternative firmware build which could potentially lead to better speeds under ECI cabinets. Curious, I ended up testing this by flashing the alternative firmware build. My sync under the alternative firmware was 65 Mbps, a whopping 1 Mbps more, so really not that much gain. I’m also not sure how recommended it is to run the alternative firmware, DrayTek themselves suggest the default BT build for most, so I’ve decided to reflash back and leave it on the default firmware.

我确实遇到了有关DrayTek Vigor 130具有替代固件版本的一些信息,这可能会导致在ECI机柜下提高速度。 很好奇,我最终通过刷新备用固件版本进行了测试。 在备用固件下,我的同步速度为65 Mbps,比原来高出1 Mbps,因此实际上没有那么多增益。 我也不确定如何推荐运行替代固件,DrayTek自己建议大多数情况下使用默认的BT版本,因此我决定重新闪回并将其保留在默认固件上。

I then came across an interesting post on overclockers.co.uk which shows adjusting the SNR (Signal-to-noise) delta on the Vigor 130 can improve downstream speeds (apparently benefiting those connecting to ECI cabinets). I decided to test it out. The poster suggests setting the margin delta to -50, which you can do with vdsl snr -50 , this will then reboot the modem. You can then run vdsl snr without any parameters to confirm the set value.

然后,我在overclockers.co.uk上遇到了一个有趣的帖子,该帖子显示调整Vigor 130的SNR(信噪比)增量可以提高下游速度(显然使那些连接到ECI机柜的人受益)。 我决定进行测试。 张贴者建议将裕量增量设置为-50,您可以使用vdsl snr -50 ,然后重新启动调制解调器。 然后,您可以运行不带任何参数的vdsl snr来确认设置值。

> vdsl snrUsage:
vdsl snr [delta]
delta: SNR margin delta. The SNR margin delta should range from -50 to 50.
delta=1 means 0.1dB.
Current VDSL SNR Margin is 1 dB.
Current VDSL SNR Margin delta setting is -50.

To my surprise, after a reboot the downstream significantly improved! Syncing at the maximum available (well 5000 bps shy, but close enough!)

令我惊讶的是,重启后下游的状况有了明显改善! 以最大可用速度同步(害羞5000 bps,但足够接近!)

> vdsl status---------------------- ATU-R Info (hw: annex A, f/w: annex A/B/C) -----------
Running Mode : 17A State : SHOWTIME
DS Actual Rate : 79995000 bps US Actual Rate : 20000000 bps
DS Attainable Rate : 82568328 bps US Attainable Rate : 24143688 bps
DS Path Mode : Fast US Path Mode : Fast
DS Interleave Depth : 1 US Interleave Depth : 1
NE Current Attenuation : 13 dB Cur SNR Margin : 1 dB
DS actual PSD : 1. 6 dB US actual PSD : 1. 7 dB
NE CRC Count : 24 FE CRC Count : 139
NE ES Count : 24 FE ES Count : 93
Xdsl Reset Times : 0 Xdsl Link Times : 2
ITU Version[0] : fe004452 ITU Version[1] : 41590000
VDSL Firmware Version : 05-07-06-0D-01-07 [with Vectoring support]
Power Management Mode : DSL_G997_PMS_L0
Test Mode : DISABLE
-------------------------------- ATU-C Info ---------------------------------
Far Current Attenuation : 11 dB Far SNR Margin : 9 dB
CO ITU Version[0] : b5004946 CO ITU Version[1] : 544eb206
DSLAM CHIPSET VENDOR : < IFTN >

I’m not an expert with VDSL, so I don’t know the exact issues or all the potential ramifications of this change. I do know it could potentially cause stability issues i.e. increased error count, so I’ve left the modem with these settings for a while to find out. After a couple of days my downstream sync speeds had gone down to 73 Mbps with a SNR value of 3dB, so it would appear DLM may have invoked a change and possible banded my connection.

我不是VDSL专家,所以我不知道此更改的确切问题或所有潜在后果。 我确实知道这可能会导致稳定性问题,即增加错误计数,因此我将这些设置留给调制解调器了一段时间。 几天后,我的下游同步速度下降到73 Mbps,SNR值为3dB,因此DLM似乎调用了一个更改,并可能限制了我的连接。

I was able to get this speedtest result before DLM has kicked in.

在DLM启动之前,我能够获得此速度测试结果。

使用draytek vigor 130 openwrt的沃达丰英国商务宽带_第5张图片
Vodafone speedtest results. 74.1 Mbit/s down and 19.5 Mbit/s up, with a ping of 16.0 ms with an SNR value of 1dB 沃达丰速度测试结果。 下降74.1 Mbit / s和上升19.5 Mbit / s,ping为16.0 ms,SNR值为1dB

Now it would appear, it is slightly lower, with the adjustments but overall still better than my original sync. If it can stay within these specifications, I think I’ll call that a success!

现在,它有了一些调整,但略低一些,但总体上还是比我原来的同步好。 如果它能保持在这些规格之内,我想我会成功的!

使用draytek vigor 130 openwrt的沃达丰英国商务宽带_第6张图片

结论 (Conclusion)

Given my tech interests and background, it is surprising this is my first proper venture into VDSL. Growing up I had dial up, but my parents then went straight to cable broadband (anyone remember NTL?!), so I never really saw ADSL/VDSL much in the household. It was interesting to go hands on with something that’s still probably the most common type of internet connection today. That is until the whole of the UK goes FTTP, but that’s going to take a while. Gigabit Britain, is not happening overnight, but it can’t come soon enough!

考虑到我的技术兴趣和背景,令人惊讶的是,这是我第一次涉足VDSL。 长大后我有了拨号,但是我的父母随后直接使用电缆宽带(有人记得NTL吗?!),所以我从没真正在家中看到ADSL / VDSL。 进行一些可能仍然是当今最常见的Internet连接类型的有趣的事情。 直到整个英国都采用FTTP,但这仍需要一段时间。 千兆比特的英国不是一夜之间发生的,但它不可能很快到来!

翻译自: https://medium.com/@jamesmacwhite/vodafone-uk-business-broadband-with-the-draytek-vigor-130-openwrt-ab96eb05ad77

你可能感兴趣的:(python)