Enterprise Network switching routing redundancy configuration:
When a network failure occurs through this configuration, the normal network connection can also be maintained.
Technologies used: STP, HSRP, and VTP. Lab topology: 650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'border =" 0 "alt =" "src =" http://www.bkjia.com/uploads/allimg/131227/033601C34-0.jpg "/> configuration steps and key commands:1. Configure the trunk port to start trunk on the corresponding ports of the following devices:
RSW1: F0/0 ~ 4, F0/11 ~ 12;
RSW2: F0/1 ~ 4, F0/11 ~ 12;
SW1 ~ SW4: F0/1 ~ 2
Related commands:
# Sw mo tr2. SW1 ~ 4. Configure vtp-client mode on RSW2, configure vtp on RSW1, with the domain name text.com, and divide the four VLANs: 2 ~ 5. Check whether the four L2 switches have been learned.
Related commands:
# Vl da
# Vl 2 // (2 ~ 5)
# Vtp do text.com3. Add the corresponding ports to the corresponding vlan on the four layer-2 switches.
For example, F0/1 ~ On sw1 ~ 2 belongs to vlan2
# Int f0/1
# Sw ac vl 2
4. Configure the Spanning Tree Protocol on the RSW on the layer-3 Switch: configure the root of vlan2 on RSW1 and vlan4 on RSW2 ~ Root of 5
On RSW1:
# Span vlan 2
# Span vlan 2 root primary
# Span vlan 3
# Span vlan 3 root primary
# Span vlan 4
# Span vlan 4 root secondary
# Span vlan 5
# Span vlan 5 root secondary
On RSW2:
# Span vlan 4
# Span vlan 4 root primary
# Span vlan 5
# Span vlan 5 root primary
# Span vlan 2
# Span vlan 2 root secondary
# Span vlan 3
# Span vlan 3 root secondary5. Configure the speed port, Ethernet channel, and uplink speed link.
In SW1 ~ 4. Speed ports on f0/11:
# Span portfast
In RSW1 ~ F0/11 ~ of 2 ~ Configure the Ethernet channel on 12:
# Int range f0/11-12
# Channel-group 1 mode
In sw1 ~ 4. Configure the uplink speed link:
# Spanning-tree uplinkfast6. Enable the routing function on the layer-3 Switch, configure inter-vlan communication, and configure the IP addresses and HSRP of each vlan.
On RSW1:
# Int vlan 2
# Ip add 192.168.2.20.255.255.255.0
# Standby 2 ip address 192.168.2.254
# Standby 2 priority 120
# Standby 2 preempt
# Standby 2 track f0/1 30
# Standby 2 track f0/2 30
# Int vlan 3
# Ip add 192.168.3.351 255.255.255.0
# Standby 3 ip 192.168.3.254
# Standby 3 priority 120
# Standby 3 preempt
# Standby 3 track f0/1 30
# Standby 3 track f0/2 30
# Int vlan 4
# Ip add 192.168.2.20.255.255.255.0
# Standby 4 ip 192.168.4.254
# Standby 4 priority 110
# Standby 4 preempt
# Int vlan 5
# Ip add 192.168.5.20.255.255.255.0
# Standby 5 ip address 192.168.5.254
# Standby 5 priority 110
# Standby 5 preempt on RSW2:
# Int vlan 2
# Ip add 192.168.2.252 255.255.255.0
# Standby 2 ip address 192.168.2.254
# Standby 2 priority 110
# Standby 2 preempt
# Int vlan 3
# Ip add 192.168.3.252 255.255.255.0
# Standby 3 ip 192.168.2.254
# Standby 3 priority 110
# Standby 3 preempt
# Int vlan 4
# Ip add 192.168.4.252 255.255.255.0
# Standby 4 ip 192.168.4.254
# Standby 4 priority 120
# Standby 4 preempt
# Standby 4 track f0/1 30
# Standby 4 track f0/2 30
# Int vlan 5
# Ip add 192.168.5.252 255.255.255.0
# Standby 5 ip address 192.168.5.254
# Standby 5 priority 120
# Standby 5 preempt
# Standby 5 track f0/1 30
# Standby 5 track f0/2 30
Note: The above 192.168.2.254, 3.254, 4.254, and 5.254 are virtual IP addresses, which will be re-configured immediately when the DHCP service is enabled on the layer-3 Switch)7. Build a DHCP server on a layer-3 Switch
On RSW1:
# Ip dhcp pool 2
# Network 192.168.2.0 255.255.255.0
# Default-router 192.168.2.254
# Dns-server 202.106.0.20
# Ip dhcp pool 3
# Network 192.168.3.0 255.255.255.0
# Default-router 192.168.3.254
# Dns-server 202.106.0.20
# Ip dhcp pool 4
# Network 192.168.4.0 255.255.255.0
# Default-router 192.168.4.254
# Dns-server 202.106.0.20
# Ip dhcp pool 5
# Network 192.168.5.0 255.255.255.0
# Default-router 192.168.5.254
# Dns-server 202.106.0.208. Configure the interface IP address and rip in RSW1.
# Router rip
# No auto-summary
# Version 2
# Network 192.168.2.0
# Network 192.168.3.0
# Network 192.168.4.0
# Network 192.168.5.0
# Network 192.168.8.0
Configure the corresponding interface ip address (omitted)9. Configure the interface IP address and rip on RSW2.
# Router rip
# No auto-summary
# Version 2
# Network 192.168.2.0
# Network 192.168.3.0
# Network 192.168.4.0
# Network 192.168.5.0
# Network 192.168.9.0
Configure the corresponding interface ip address (omitted)10. Configure the rip and ip addresses of the router R1 interface.
# Router rip
# No auto-summary
# Version 2
# Network 202.1.1.0
# Network 192.168.9.0
# Network 192.168.8.0
Then configure the corresponding interface ip address (Omitted) So far, the entire configuration is basically complete, followed by the test phase.11. view the route information and use the ping command for testing to disconnect f0/1 ~ From RSW1 ~ 4. ping VPC1 from VPC2 on any port. If the port times out and can be pinged later, the configuration is successful, in the event of an emergency, the backup router continues to work.Finally, summarize the highlights of this Configuration:
1> When tracking, You must select the target tracking port. Vlan2 tracking f0/1 ~ On RSW1 ~ 2. vlan3 tracks f0/1 ~ 2; vlan4 tracking f0/3 ~ On RSW2 ~ 4. vlan5 tracks f0/3 ~ 4.
2> trunk must be enabled between two vswitches.
3> On a layer-3 switch, the interface ip address must be configured; otherwise, the interface fails.
This article is from the "bitter coffee's O & M path" blog and is not reposted!