In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Huawei configures VRRP
Experiment:
Ideas and steps:
1.sw1 creates vlan10 vlan20 vlan30 vlan40, and each port joins its own vlan
0Accord0According to the trunk mode
two。 Configure on sw2:
0DB 0ax 5 is the trunk mode, create vlan10 20 30 40
Configure vlanif10 ip:192.168.10.254/24
Vlanif20 ip:192.168.20.254/24
Vlanif30 ip:192.168.30.254/24
Vlanif40 ip:192.168.40.254/24
The virtual gateway 192.168.10.250 configured with vlanif10 has a priority of 150
Vlanif20's virtual gateway 192.168.20.250 has a priority of 150
Vlanif30's virtual gateway 192.168.30.250
Virtual Gateway 192.168.40.250 of vlanif40
3. Configure on sw3:
Trunk mode, create vlan10 20 30 40
Configure vlanif10 ip:192.168.10.253/24
Vlanif20 ip:192.168.20.253/24
Vlanif30 ip:192.168.30.253/24
Vlanif40 ip:192.168.40.253/24
Configure the virtual gateway 192.168.10.250 for vlanif10
Vlanif20's virtual gateway 192.168.20.250
Vlanif30's virtual gateway 192.168.30.250 has a priority of 150
Vlanif40's virtual gateway 192.168.40.250 has a priority of 150
Verify:
Vlanif10 20 is master routing in sw2 configuration
Vlanif30 40 is master routing in sw3 configuration
=
Debug is enabled for Huawei devices:
1 、 terminal monitor
2 、 terminal debugging
3 、 debugging ip icmp
4 、 [huawei] info-center console channel monitor
-
Key points:
VRRP: (public agreement)
Running between multiple routers
You can virtualize one or more gateway IP addresses (virtual routers)
So as to realize the interworking between different network segments of the intranet.
The working process of VRRP:
1. The interaction between "multiple" routers running VRRP through the VRRP message, thus selecting
The best router, as a Master router, will be used for this device in the future.
To forward the packet
2. There is only one Master router; other routers are called backup routers.
3. At the same time, Master and Backup routers will produce a virtual router, that is, a
Virtual IP address
VRRP configuration commands:
1. Enter the gateway port
2. Configure VRRP virtual IP address
3. Modify the priority of the primary router
Interface fas0/0
Vrrp vrid 1 virtual-ip 192.168.10.250 / / enable VRRP and configure the virtual gateway IP
Vrrp vrid 1 priority 110 / / configure the priority of the VRRP master device
The default is 100
4. Verify, test, save
Show vrrp
R1/R2:
Debug ip icmp
PC:
Ping 192.168.10.250
R1/R2:
Router#write
HSRP:hot standby route protocol, dual Hot backup Protocol; [Cisco Private Protocol]
The same function:
The command is slightly different:
Interface fas0/0
Standby 1 ip 192.168.10.250 / / enable VRRP and configure the virtual gateway IP
Standby 1 priority 110 / / configure the priority of the VRRP master device
The default is 100
Standby 1 preempt / / enable the preemption function of the HSRP of the device
-
HSRP Link tracking:
"external link" tracking technology in HSRP to ensure that when the gateway device goes to the outer network, there is a problem.
In the future, the internal HSRP can be sensed immediately, thus lowering its HSRP priority.
To ensure that standby routers in the HSRP group can be quickly upgraded to active routing
Realize the forwarding of data packets.
Configuration implementation:
Interface gi0/0
Standby 1 ip 192.168.10.250
Standby 1 priority 150
Standby 1 preempt
Standby 1 track gi0/1 100
/ / the HSRP under this port monitors the link status of gi0/1 at all times.
If the status changes to down, the HSRP that the port sends out
The priority in the message is reduced by 100 to 50.
=
VRRP: (Huawei configuration command)
R1: (master router)
Interface gi0/0/0
Vrrp vrid 1 ip 192.168.10.250
Vrrp vrid 1 priority 150
Vrrp vrid 1 track interface gi0/0/1 reduced 100
/ / track the status of port gi0/0/1, if down
It is reduced by 100 and the priority is changed to 50.
R2: (backup router)
Interface gi0/0/0
Vrrp vrid 1 virtual-ip 192.168.10.250
Restore the port to the default configuration:
Cisco:
Router (config) # default interface fas0/0
Huawei:
[sw] clear configuration interface fas0/0
/ / the command for the port will be cleared, and the port will enter the "off" state.
If you want to use it again, you must have "undo shutdown"
Debug is enabled for Huawei devices:
1 、 terminal monitor
2 、 terminal debugging
3 、 debugging ip icmp
4 、 [huawei] info-center console channel monitor
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.