Preliminary steps
1. Make sure your two switches are connected together, preferably via port-channels (lag)
2. make sure the VLANs you want to apply VRRP to are enabled on the port channels so that they span both switches
Configuration
In this example, we'll create a new routing VLAN (VLAN 15 for this example) on two switches, switch-a and switch-b. The primary ip will be 192.168.211.1, and the secondary will be 192.168.211.2. the VRID for the VRRP will be 15 (for convenience - but not strictly necessary. VRID 1 would work as well, I just find it easier to name it after the vlan.) The virtual IP will be 192.168.211.254.
Master switch
1. log into switch-a
2. enable
3.
vlan database
vlan 15
vlan routing 15
exit
4.
configure
ip routing
ip vrrp
interface vlan 15
ip address 192.168.211.1 255.255.255.0
ip vrrp 15
ip vrrp 15 ip 192.168.211.254
ip vrrp 15 preempt
ip vrrpt 15 authentication simple my_pass
ip vrrp 15 mode (enables vrrp on this interface)
exit
exit
5. verify that VRRP 15 is behaving correctly:
sh ip vrrp interface vlan 15 15
Primary IP Address............................. 192.168.211.254
VMAC Address................................... 00:00:5e:00:01:50
Authentication Type............................ None
Priority....................................... 100
Advertisement Interval (secs).................. 1
Pre-empt Mode.................................. Enable
Administrative Mode............................ Enable
State.......................................... Master
Backup Switch
1. log into switch-b
2. enable
3. enter the following commands:
vlan database
vlan 30
vlan routing 30
exit
4.
configure
ip routing
ip vrrp
interface vlan 15
ip address 192.168.211.2 255.255.255.0
ip vrrp 15
ip vrrp 15 ip 192.168.211.254
ip vrrp 15 priority 1 (makes this a secondary - it defaults to 100)
ip vrrp 15 preempt
ip vrrpt 15 authentication simple my_pass
ip vrrp 15 mode (enables vrrp on this interface)
exit
exit
5. verify that VRRP is working correctly
sh ip vrrp interface vlan 15 15
sh ip vrrp interface vlan 15 15
Primary IP Address............................. 192.168.211.254
VMAC Address................................... 00:00:5e:00:01:50
Authentication Type............................ None
Priority....................................... 1
Advertisement Interval (secs).................. 1
Pre-empt Mode.................................. Enable
Administrative Mode............................ Enable
State.......................................... Backup
1 comment:
Thank you so much for sharing this kind of amazing blog about netgear router I'm always supposed to find this kind of informative blog because of it really helpful for me. For need help for Netgear Router contact at 0800-090-3220 or visit Netgear Phone Number UK
Post a Comment