Dual-router dual-small switch sets up the company's network, two public IP Access Cases

Source: Internet
Author: User
This case has been tested successfully and is currently running stably. /Y2 C, y $ J2 x $ i7 C $ d

6 \; {9 r! V5 ~ Basic Introduction: here does not explain the router and switch brand, there are TP-LINK, other brands. Vrouters and vswitches are the simplest functions. G! M8 Y & H4 M6 K3 F3 u * ^ 9 y
There are two vrouters, one is 8 wireless ports, and the other is 24 ports.
; E3 R (G6 S $ v % W8
* ^, F $ F' V: T network environment: office A (a) and office B (B) have simultaneously applied for two ADSL 2 m accounts from China Netcom, A has an ADSL cat provided by China Netcom, and a vro (pppoe function, which seems to be an Alpha switch with the simplest share of the ADSL Router router) with 24 ports. B and A are basically the same, that is, the switch has eight ports, and the router Supports Wireless. Both A and B are independent LAN. A has 10 computers and B has 8 computers. There is actually another C office, but there are only two points, not to mention here. B * A & H & Q6 P5 y, m

"E % H + |. z "m # N purpose: to share the two LAN networks of A and B, that is, a and B can access each other and share the networks with each other, on the basis of a to take a 2 m ADSL account (hereinafter referred to as AD-A), B to take another 2 m ADSL account (AD-B ).
6 Z; _ 3 B & E * X5 ~ % L $ H6 I & O: [) m
Preparations: Two ADSL accounts and passwords, one of which can be connected to two vswitches. The Administrator account and password of the two routers. Permission for using two computers in A and B (for test)}. e "F5 r$ A8 C2 P8 v % Y

* | 0 P & '& | 0 F0 V, ["\ work plan: Actually there are many methods, but different network environments, combined with different configuration methods, the network environment on my side is very simple, and I don't want to invest in hardware, and there are not many machines. It is not necessary to set it as complicated .) X7 W + O $ C $ Q3 C! D' t; B
3 ^ % L) V $ W 'Y-S' P3 u
We can build a bridge through a server and then share two local networks, but it is also troublesome. "W8 I2] 6 P5 V5] & B +} 'E. I

/^ 5 J2 {2 ~ * G. V % Y2 H1 S % O5 C I am here to link two routers through a reverse pair of crossover wires .! {$ H [* T % Y4 E % Z
9 E3] (V. B; m
First, make sure that the network environment of A and B has been set up, that is, the ADSL line is connected to the ADSL cat, the cat is connected to the router, the router is connected to the switch, and the switch is connected to each terminal. Make sure that the local networks of A and B are shared successfully and can access the Internet. (It should be noted that it is better not to directly connect to the terminal on the vro. It is not stable after it is connected. In fact, I will connect to the vro later, because eight vswitches of B's eight computers are not enough, both vrouters have four ports. In addition, one or four ports are used when the vro is connected to the vswitch. This is generally known by network administrators, and the up port and 1 port of the vswitch should not be used at the same time .)
, M1 V1 | // @ 4 ^ )~ # C
0 P & S0 L6 S * O7 U. | after the above work is completed, the Local Area Network Test is normal. Now we start to link a and B, and use a reverse pair of twisted pair wires (one t568a, one t568b) to link a's routers and B's routers, I have selected three ports. In fact, they are all the same during the test. They can be connected to vswitches. No problem. However, we do things to avoid unnecessary troubles. During the link process, we still need rules. $ Y0 J # A, B 'R, R /?, I9 U @ 1 t

5 A2 y-D! N; y at this time, the LAN of A and B has been connected successfully, that is, the LAN can access each other. But how to achieve a and B their respective AD-A and AD-B?
6 Q1 u8 R']. T2 W3 B "s
# F. K % N (I5 T4 A requires two gateways. Generally, vrouters support changing their IP addresses. vro IP address a is 192.168.1.1, and vrob B IP address is 192.168.1.100. (The IP addresses of the two routers are randomly set, but must be in the same network segment)
+ P $ Z x, p * j (Q "I1 C (R # L $ S: Q6 J (B %} &
Vrodhcp configuration of a enables DHCP. The allocated IP address ranges from 192.168.1.6 to 192.168.1.90. (This IP address range cannot include the IP address of vrob B. Pay attention to this and set this IP address segment as needed.) 4 x, v-P (j9 [6 r \ 8 x
9 B8 W3 Z % C8 E0 m
B's router settings disable DHCP.
) S y e #} "C # Q (w *] R7 N2 W $ D: U! \, D; V9 P
The IP address of Terminal A can be automatically assigned without specifying an IP address. Terminal B must specify the IP address and gateway, that is, 192.168.1.100. We recommend that you set the DNS address to the DNS address provided by China Netcom or other ISP service providers, you can view it in the running status. 3 J % G % P ''' Z (F

'Q % O. v.], S & E1 y-U3 R3 B so far, AB can access each other, and AB goes through the AD-A and AD-B respectively (from their respective routers you can view the assigned terminal ). # S9 y6 K-L4 {*}

6 W5 r'q9 Z + F * J # Problems in O operation:
& I $ U # f) K0 N $ F0 K "Q1 R) K: |, @, [3 A G & J ('
Although this scheme is very simple, it has not been done before. After this scheme, it is proved feasible. Next, let's talk about the problem in the test. At the beginning, I opened the DHCP of Both routers, which is not feasible. It is not feasible to separate DHCP address segments without repeated settings. It is feasible to disable DHCP and connect to the specified IP address of the computer. After this solution is established, all the computers connected to it are actually going through a, that is, the DHCP gateway. To go through B, the IP address that closes DHCP must be set for the terminal. ^ _ ^ & A # m)

Related Article

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.