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.

  1. 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.

  1. Configure the interface to the router.

interface GigabitEthernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk

  1. Configure the interface to Exinda Appliance #1.

interface GigabitEthernet0/2
switchport trunk encapsulation dot1q
switchport mode trunk

  1. Configure the interface to Exinda Appliance #2.

interface GigabitEthernet0/3
switchport trunk encapsulation dot1q
switchport mode trunk

  1. Set the IPInternet protocol addresses for the VLANs.

interface Vlan10

no ip address

interface Vlan20

no ip address