D-Link UNIFIED WIRED & WIRELESS ACCESS SYSTEM DWS-3000 User Manual
Page 89
CLI Examples
89
14 Virtual Router Redundancy Protocol
Assign virtual router IDs to the port that will participate in the protocol.
config
interface 0/2
ip vrrp 20
Specify the IP address that the virtual router function will recognize. Note that the virtual IP
address on port 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. And the priority default is 255.
ip vrrp 20 ip 192.150.2.1
Enable VRRP on the port.
ip vrrp 20 mode
exit
Example 2: Configuring VRRP on the Switch as a Backup Router
Enable routing for the switch. IP forwarding is then enabled by default.
config
ip routing
exit
Configure the IP addresses and subnet masks for the port that will participate in the protocol.
config
interface 0/4
routing
ip address 192.150.4.1 255.255.255.0
exit
Enable VRRP for the switch.
config
ip vrrp 20
exit
Assign virtual router IDs to the port that will participate in the protocol.
config
interface 0/4
ip vrrp 20
Specify the IP address that the virtual router function will recognize. Since the virtual IP
address on port 0/4 is the same as Router 1’s port 0/2 actual IP address, this router will always
be the VRRP backup when Router 1 is active.
ip vrrp 20 ip 192.150.2.1
Set the priority for the port. The default priority is 100.
ip vrrp 20 priority 254