VRRP tracking link

VRRP tracking link
The basic configuration of the switch: Switch to change the name, then create vlan configuration access in interface mode in the interface is added to vlan10

[sw1]vlan 10
[sw1]int g0/0/1
[sw1-GigabitEthernet0/0/1]port link-type access
[sw1-GigabitEthernet0/0/1]port default vlan 10
[sw1]int g0/0/2
[sw1-GigabitEthernet0/0/2]port link-type access
[sw1-GigabitEthernet0/0/2]port default vlan 10
[sw1]int g0/0/3
[sw1-GigabitEthernet0/0/3]port link-type access
[sw1-GigabitEthernet0/0/3]port default vlan 10

R1 basic configuration Routing IP address
[sw1-GigabitEthernet0 / 0/0 ] IP address 192.168.10.251/24
[SW1-the GigabitEthernet0 / 0 /. 1] IP address 192.168.20.1/24
the VRRP Basic Configuration
[sw1-GigabitEthernet0 / 0/0 ] Virtual-IP. 1 vrid VRRP 192.168.10.254
the VRRP priority configuration
[SW1-the GigabitEthernet0 / 0/0]. 1 vrid VRRP priority 200 is
the VRRP Linktrace configuration: int g0 / 0/1 line fails to automatically lower the priority
[r1-GigabitEthernet0 / 0/0] vrrp vrid 1 track interface GigabitEthernet0 / 0/1 reduced 150
static routing configuration
[r1] ip route-static 192.168.40.0 24 192.168.20.2

R2 basic configuration Routing IP address
[SW1-the GigabitEthernet0 / 0/0] IP address 192.168.10.252/24
[SW1-the GigabitEthernet0 / 0/2] IP address 192.168.30.1/24
[SW1-the GigabitEthernet0 / 0/0]. 1 VRRP vrid virtual-ip 192.168.10.254
static routing configuration
[R2] 24 IP 192.168.40.0 192.168.30.2 route-static
R3 basic configuration of routing IP address
[R3] int G0 / 0 /. 1
[R3-the GigabitEthernet0 / 0 /. 1] IP address 192.168 24 .20.2
[R3] int G0 / 0/2
[R3-the GigabitEthernet0 / 0/2] IP address 192.168.30.2 24
[R3] int G0 / 0/0
[R3-the GigabitEthernet0 / 0/0] IP address 192.168.40.254 24
configure a default route
[R3] IP 192.168.20.1 route-static 0.0.0.0 0.0.0.0
[R3] 0.0.0.0 0.0.0.0 IP 192.168.30.1 route-static
PC2 client IP address configuration
VRRP tracking link
PC3 client IP address configuration
VRRP tracking link
by grasping package validation results
VRRP tracking linkVRRP tracking link
router
[r1] display vrrp view VRRP information
[r1] display ip interface brief check the IP address information
[r1] display ip routing-table routing table information
Switch
[sw1] display vlan view vlan information
[sw1] display port vlan View Interface Configuration
[r1] display current-configuration for more configuration information (general command switches and routers)

Guess you like

Origin blog.51cto.com/14310238/2425305