Pete's Packet

Limitless

  • Catagories

  • Global visitors

    free counters
  • RSS CCIE Jobs – Metro NY area

    • An error has occurred; the feed is probably down. Try again later.

VPC config example

Posted by Peter Kurdziel on August 22, 2013

vPC Example Configuration

The following example shows how to configure vPC on device A as shown in Figure 6-9:

Figure 6-9 vPC Configuration Example


Step 1 Enable vPC and LACP.

switch# config t

switch(config)# feature vPC

switch(config)# feature lacp

Step 2 (Optional) Configure one of the interfaces that you want to be peer link in dedicated mode.

switch(config)# interface ethernet 7/1, ethernet 7/3, ethernet 7/5. ethernet 7/7

switch(config-if)# shutdown

switch(config-if)# exit

switch(config)# interface ethernet 7/1

switch(config-if)# rate-mode dedicated

switch(config-if)# no shutdown

switch(config-if)# exit

switch(config)#

Step 3 (Optional) Configure the second, redundant interface that you want to be peer link in dedicated mode.

switch(config)# interface ethernet 7/2, ethernet 7/4, ethernet 7/6. ethernet 7/8

switch(config-if)# shutdown

switch(config-if)# exit

switch(config)# interface ethernet 7/2

switch(config-if)# rate-mode dedicated

switch(config-if)# no shutdown

switch(config-if)# exit

switch(config)#

Step 4 Configure the two interfaces (for redundancy) that you want to be in the peer link to be an active Layer 2 LACP port channel.

switch(config)# interface ethernet 7/1-2

switch(config-if)# switchport

switch(config-if)# switchport mode trunk

switch(config-if)# switchport trunk allowed vlan 1-50

switch(config-if)# switchport trunk native vlan 20

switch(config-if)# channel-group 20 mode active

switch(config-if)# exit

Step 5 Create and enable the VLANs.

switch(config)# vlan 1-50

switch(config-vlan)# no shutdown

switch(config-vlan)# exit

Step 6 Create a separate VRF for the vPC peer-keepalive link and add a Layer 3 interface to that VRF.

switch(config)# vrf context pkal

switch(config-vrf)# exit

switch(config)# interface ethernet 8/1

switch(config-if)# vrf member pkal

switch(config-if)# ip address 172.23.145.218/24

switch(config-if)# no shutdown

switch(config-if)# exit

Step 7 Create the vPC domain and add the vPC peer-keepalive link.

switch(config)# vpc domain 1

switch(config-vpc-domain)# peer-keepalive destination 172.23.145.217 source 172.23.145.218 
vrf pkal

switch(config-vpc-domain)# exit

Step 8 Configure the vPC peer link.

switch(config)# interface port-channel 20

switch(config-if)# switchport mode trunk

switch(config-if)# switchport trunk allowed vlan 1-50

switch(config-if)# vpc peer-link

switch(config-if)# exit

switch(config)#

Step 9 Configure the interface for the port channel to the downstream device of the vPC.

switch(config)# interface ethernet 7/9

switch(config-if)# switchport mode trunk

switch(config-if)# allowed vlan 1-50

switch(config-if)# native vlan 20

switch(config-if)# channel-group 50 mode active

switch(config-if)# exit

switch(config)# interface port-channel 50

switch(config-if)# vpc 50

switch(config-if)# exit

switch(config)#

Step 10 Save the configuration.

switch(config)# copy running-config startup-config

Leave a comment