In-depth explanation of dynamic configuration of ADSL Gateway

Source: Internet
Author: User

In-depth explanation of the dynamic configuration of ADSL gateway, many problems will be encountered in the process of contact with the configuration of ADSL gateway, the configuration of ADSL gateway has been a hot topic, therefore, we hope the following articles can help you solve this problem.

Note: This method is suitable for different network environments of the Gateway after dialing! First, let's explain why I need to set up two ADSL gateways to proxy the internet. the Internet Cafe began to use 25 m optical fiber with 400 machines. For some time, I felt that the Network was relatively slow, so the boss considered adding bandwidth. however, considering that the optical fiber fee in Shenzhen is extremely expensive, we applied for two 4 m ADSL traffic delivery systems.

25 m with 340 servers, and the other 60 servers are equipped with two ADSL gateways .. in this article, I didn't bring 60 servers. You can see this by yourself.) Why should I use the load? Because after you connect two Internet NICs with the router OS, at the same time, there is only one option that can be used to set the ADSL gateway, even if both are pulled up. so in order not to waste resources, we need to load the two sets of ADSL gateway to work at the same time, and at the same time to proxy the Internet .... reference a master first. note: many people ask:

What should I do if I dynamically set the ADSL Gateway?

Take a closer look at the dynamic setting of the ADSL gateway IP address in IP Routes. The changing of the gateway IP address will not change. You set the ADSL gateway in interfaces, dial the Add Default Route, and then manually remove the Add Default Route in IP Routes. add a gateway.

What should I do if I set the same ADSL Gateway?

Easy! When one Moden enables the routing function, the gateway is different?

First, let's talk about the configuration of most of the load on the ADSL gateway is based on IP traffic distribution, or port traffic distribution. As the IP address segment of my Internet cafe is messy, I will bring 60 machines according to IP traffic distribution .. if you prefer port shunting, try it yourself. my configuration of ADSL Gateway after dialing... after I dial the number, the gateway changes every time. The Gateway is the subnet mask after the dial. so what should we do? Look down.

◆ Install routeros (I used 2.927) with three NICs, one Intranet and two Internet .. connect the Intranet network cable so that you can access the route... modify the name of the route Nic.

◆ Add the pppoe client to the two NICs of the Internet (WAN1, WAN2). The first one is the username and password for configuring the ADSL gateway and adding the dial-up number, the second name is the username and password used to set the ADSL gateway with the dial-up number. note: Remove Add Default Route.

◆ Set IP spoofing.

◆ Set the MARK to mark the IP range you want to divert set new routeing MARK to ADSL1 and ADSL2

◆ Add a route MARK in IP-routers and name it link1. MARK in link2 must be consistent with the gateway you set in the previous step, because the script will be used to update the route below.

◆ Add the script for monitoring the dial status, and update the gateway obtained after the dial to the routing table in the previous step... two scripts are added in total. ADSL1 and ADSL2 (system -- scripts)

◆ Add a scheduled task and run the above ADSL1 and ADSL2 scripts every 10 (or 20) seconds. if you change the time here, you can change the value after interval. Note that the figure is OK. (system -- scheduler: the name of the scheduled Task Service in XP is the same .)

◆ OK, I hope you can succeed... let's take a look at my future results !! The actual environment is tested. below is the actual traffic diagram of my two sets of ADSL gateway!

If you have any questions, please follow the instructions of the landlord. However, the second setting of the ADSL gateway does not allow dial-up connections. That is, it does not reflect. Please first set the ADSL gateway to enable single-host dial-up and access the internet. Then try the router dial-up. ..... if the single host can be pulled, try again to check the first check of the dial-up option, that is, manually dial the number.

Then remove the check box and enable him to automatically dial the number. Sometimes I won't be able to unplug it at the beginning. After I try it, I can change the NIC if it doesn't work, because I have this situation, I only have one 3com NIC that can be pulled up, so I switched a TP Nic to be pulled up... it was done this evening from this morning.

If you think it is good, let's stick to it. We advocate free posting and viewing and replying! Again, BS changed the password of my WG333 online storage. I want to teach you something for free, and you need to change the password of my online storage. It's not so cool. Blow up my enthusiasm. The following are two scripts for configuring the monitoring of the ADSL gateway. You just need to copy it directly. If you want to familiarize yourself with the content, I suggest you manually write it down.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.