- 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/4
(Netgear Switch) (Interface 1/0/4)#routing
(Netgear Switch) (Interface 1/0/4)#ip address 192.150.4.1 255.255.0.0
(Netgear Switch) (Interface 1/0/4)#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/4
(Netgear Switch) (Interface 1/0/4)#ip vrrp 20
- Specify the IP address that the virtual router function will recognize. Since the virtual IP address on port 1/0/4 is the same as Router 1’s port 1/0/2 actual IP address, this router will always be the VRRP backup when Router 1 is active.
(Netgear Switch) (Interface 1/0/4)#ip vrrp 20 ip 192.150.2.1
- Set the priority for the port. The default priority is 100.
(Netgear Switch) (Interface 1/0/4)#ip vrrp 20 priority 254
- Enable VRRP on the port.
(Netgear Switch) (Interface 1/0/4)#ip vrrp 20 mode
(Netgear Switch) (Interface 1/0/4)#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 M5300 managed switch?
- How do I configure the Virtual Router Redundancy Protocol (VRRP) on a master router using CLI commands on my M5300 managed switch?
- How do I configure the Virtual Router Redundancy Protocol (VRRP) on a master router using the web interface on my M5300 managed switch?
- How do I configure the Virtual Router Redundancy Protocol (VRRP) on a backup router using the web interface on my M5300 managed switch?
This article applies Version 10.x or above firmware on the following switches:
- M5300-28G (GSM7228S)
- M5300-5G (GSM7252S)
- M5300-28G3 (GSM7328Sv2h2)
- M5300-52G3 (GSM7352Sv2h2)
- M5300-28G_POE+ (GSM7228PSv1h2)
- M5300-52G-POE+ (GSM7252PSv1h2)
- M5300-28GF3 (GSM7328FSv2)