Configuring a switch for virtual router redundancy protocol (VRRP) with policy-based routing (PBR) and VLANs
To use VRRPVirtual Router Redundancy Protocol with PBR and VLANs, specify the behaviour of the switch interfaces connecting to the router and the out-of-path Exinda Appliances.
- Launch the command line interface for the switch.
- To enter privileged EXEC (enable) mode, at the prompt run the command:
hostname > enable
The hostname #
prompt appears.
- To enter configuration (config) mode, at the prompt run the commands:
hostname # configure terminal
The hostname (config)#
prompt appears.
- Configure the interface to the router.
interface GigabitEthernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
- Configure the interface to Exinda Appliance #1.
interface GigabitEthernet0/2
switchport trunk encapsulation dot1q
switchport mode trunk
- Configure the interface to Exinda Appliance #2.
interface GigabitEthernet0/3
switchport trunk encapsulation dot1q
switchport mode trunk
- Set the IPInternet protocol addresses for the VLANs.
interface Vlan10
no ip address
interface Vlan20
no ip address