As I commented in the article on quickly DPS Guard Against Rays p / Cabos Clamper, I subscribe to a local Internet service provider for fiber optics, which is the best option I have in my region. But I was not very pleased with the stability, then also I signed the Vivo Internet Fixed, ADSL (the old Speedy), as Vivo does not meet my region with optical fiber. So with two not very reliable providers I make a reliable connection and still have a higher added flow.
The modem I received from Vivo was the WiFi of Datacom, modelo DM2270 ADSL 2FT + 2I, plataforma Askey RTA9211W (RTL8676) 2-Port ADSL. Web interface that appears is a wizard that does not give virtually no configuration option, but coach hinted: access the modem by URL http://192.168.1.1/padrao, using the user admin and the password that are 4 last digits of the MAC address of the modem. This makes it possible to make some settings, yet they are somewhat restricted, and put the modem in order bridge It was not an available option, unfortunately.
I prefer the modem in bridge mode since I already have a good router, that is ASUS RT-AC68U Dual Band Gigabit Router 802.11ac Wireless-AC1900. Leave two routers in the network and have double NAT is something that eventually brings problems, especially with online games. Even thought about using another modem, but this Datacom can achieve higher rates than the TP-Link TD-8816, what would be the alternative that I have at home.
But recently learned that gives to unlock the full potential of Datacom DM2270 ADSL 2FT + 2I and have access to more advanced settings, including the configuration bridge. The procedure is in this blog. It's for Coletek W-N2120, I used not Live Fiber, but also works perfectly in Datacom DM2270 ADSL 2FT + 2I. The idea is to directly access a URL in modem that lets you download a file with all settings (at backup), make a small change and up the settings back to the modem (restore). There is a small program that helps with this task, the Telnet2764 (Sagecom 2864 Tool). It downloads the settings, allows you to edit them and upload them again. The idea is to find your user (admin if you have not changed) the settings. A string é ‘(username(admin))’. Just below is his role '(role(home))’. Just change the role of 'home’ para ‘super’. Then just up the configuration back to the modem and ready. Next access the web interface is already complete with all options.
To set as bridge, First I disabled the PPPoE connection made by the modem itself. Just used the button “Disable” no menu “Internet connection”, submenu “Settings”, as shown in the screenshot below:
Por fim, you must enter “System”, after “Network connections”, click “Lan Bridge” and, finally, in “Bridge”. There are three marked boxes, a do switch LAN (the two LAN ports) and two connections to WiFi access point. The WAN connection is cleared ETHoA, just mark it and ready. The WAN port will already have a bridge to the LAN ports. There just connect a modem LAN port on the router and configure the PPPoE connection to the router itself.
Remember that using the modem as bridge, the modem interface is inaccessible over the network, because it is outside the router's LAN, even if your IP is in the same range. It also does not help put the IP on another track, for then the router will forward the packets to the gateway. The solution, no caso do ASUS RT-AC68U, It is to create a second IP to the WAN port of the router and put it on the LAN. One way to do this is to log into the router via SSH and type:
ip addr add 192.168.1.2/24 dev vlan3 brd + iptables -I POSTROUTING -t nat -o vlan3 -d 192.168.1.0/24 -j MASQUERADE
This configuration is with the router in the Dual WAN mode and the modem in WAN2. For other settings just change the 'VLAN3’ to the correct VLAN. This setting needs to be redone when the router is restarted. One way to automate this is to use firmware RMerlin and create a script called nat-start in /jffs/scripts with the following contents:
#!/bin/sh ip addr add 192.168.1.2/24 dev vlan3 brd + iptables -I POSTROUTING -t nat -o vlan3 -d 192.168.1.0/24 -j MASQUERADE logger Acesso direto ao modem da Vivo configurado
It is important that nat-start is executable:
chmod 755 nat-start
For other routers may be unable to do this kind of configuration. In this case one solution is to connect the second modem's LAN port to a router LAN port. It is important in this case disable the DHCP server modem:
Interestingly, by connecting a modem's LAN port to a router LAN port, the modem has to ask an IP router. So the modem is two IPs, did (192.168.1.1 by default) and he acquired the router. You may want to configure the router to always give the same IP for the modem in DHCP to facilitate future access. In my case I left 192.168.0.4 para o modem, and now that's how I access its interface on the internal network, using a TP-Link TL-R470T v4, which now makes the router function and Load Balancer on my network, leaving ASUS RT-AC68U only as access point and switch (I will speak more of this in an upcoming article).