This example shows how to configure the managed switch to support VRRP. Router 1 is the default master router for the virtual route, and Router 2 is the backup router.
- Enable routing for the switch. IP forwarding will then be enabled by default.
(Netgear Switch) #config
(Netgear Switch) (Config)#ip routing
- Configure the IP addresses and subnet masks for the port that will participate in the protocol.
(Netgear Switch) (Config)#interface 1/0/2
(Netgear Switch) (Interface 1/0/2)#routing
(Netgear Switch) (Interface 1/0/2)#ip address 192.150.2.1 255.255.0.0
(Netgear Switch) (Interface 1/0/2)#exit
- Enable VRRP for the switch.
(Netgear Switch) (Config)#ip vrrp
- Assign virtual router IDs to port that will participate in the protocol.
(Netgear Switch) (Config)#interface 1/0/2
(Netgear Switch) (Interface 1/0/2)#ip vrrp 20
- Specify the IP address that the virtual router function will recognize. Note that the virtual IP address on port 1/0/2 is the same as the port’s actual IP address therefore, this router will always be the VRRP master when it is active. The default priority is 255.
(Netgear Switch) (Interface 1/0/2)#ip vrrp 20 ip 192.150.2.1
- Enable VRRP on the port.
(Netgear Switch) (Interface 1/0/2)#ip vrrp 20 mode
(Netgear Switch) (Interface 1/0/2)#exit
(Netgear Switch) (Config)#exit
For more information, see the following support articles:
- What is the Virtual Router Redundancy Protocol (VRRP) and how does it work on my managed switch?
- How do I configure the Virtual Router Redundancy Protocol (VRRP) on a master router using the web interface on my managed switch?
- How do I configure the Virtual Router Redundancy Protocol (VRRP) on a backup router using CLI commands on my managed switch?
- How do I configure the Virtual Router Redundancy Protocol (VRRP) on a backup router using the web interface on my managed switch?
This article applies to the following managed switches and their respective firmware:
- M5300 - firmware version 10.0.0.x
-
- M5300-28G (GSM7228S)
- M5300-5G (GSM7252S)
- M5300-28G3 (GSM7328Sv2h2)
- M5300-52G3 (GSM7352Sv2h2)
- M5300-28G_POE+ (GSM7228PSv1h2)
- M5300-52G-POE+ (GSM7252PSv1h2)
- M5300-28GF3 (GSM7328FSv2)
- XSM7224S - firmware version 9.0.1.x (license required to support the feature described in this article)