Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

VPC basic experiment

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

1. Experimental topology:

Because of the limited conditions, two N5Ks are used for basic vPC experiments, and Peer Keepalive Link uses two Mgm0 interfaces of Nexus 5K.

Second, configuration steps:

1. Build vPC domain first, and define role priority, system priority and PKL under domain.

2. Then configure Port-channel as PL.

3. Configure vPC member ports and vPC.

4. Configure Port-channel of Catalyst4500X switch.

N5K-1

Hostname N5K-1

Feature telnet

Feature interface-vlan

Feature lacp

Feature vpc

Vlan 1, 10

Vrf context management

Vpc domain 10

Peer-switch > for other SW, do you see the same MAC address?

This value needs to be different. The small one becomes Primary, the big one becomes Secondary, and if the same, the small MAC becomes Primary.

System-priority 2100 > this value needs to be configured to be consistent in the same domain.

Peer-keepalive destination 172.16.1.2 source 172.16.1.1

Delay restore 150

Interface Vlan10

No shutdown

Ip address 10.1.1.1/24

Interface port-channel10

Switchport mode trunk

Switchport trunk allowed vlan 1,10

Spanning-tree port type network

Speed 10000

Vpc peer-link

Interface port-channel20

Switchport mode trunk

Vpc 20

Interface Ethernet1/1

Switchport mode trunk

Switchport trunk allowed vlan 1,10

Channel-group 10 mode active

Interface Ethernet1/5

Switchport mode trunk

Switchport trunk allowed vlan 1,10

Channel-group 10 mode active

Interface Ethernet1/9

Switchport mode trunk

Speed auto

Channel-group 20 mode active

Interface mgmt0

Vrf member management

Ip address 172.16.1.1/24

N5K-2

Hostname N5K-2

Feature telnet

Feature interface-vlan

Feature lacp

Feature vpc

Vlan 1, 10

Vrf context management

Vpc domain 10

Peer-switch

Role priority 101

System-priority 2100

Peer-keepalive destination 172.16.1.2 source 172.16.1.1

Delay restore 150

Interface Vlan10

No shutdown

Ip address 10.1.1.1/24

Interface port-channel10

Switchport mode trunk

Switchport trunk allowed vlan 1,10

Spanning-tree port type network

Speed 10000

Vpc peer-link

Interface port-channel20

Switchport mode trunk

Vpc 20

Interface Ethernet1/1

Switchport mode trunk

Switchport trunk allowed vlan 1,10

Channel-group 10 mode active

Interface Ethernet1/5

Switchport mode trunk

Switchport trunk allowed vlan 1,10

Channel-group 10 mode active

Interface Ethernet1/9

Switchport mode trunk

Speed auto

Channel-group 20 mode active

Interface mgmt0

Vrf member management

Ip address 172.16.1.1/24

C4500Mutual X

Vlan 1,10

Interface vlan10

Ip address 10.1.1.3 255.255.255.0

Interface range tenGigabitEthernet 1/1, tenGigabitEthernet 1/3

Channel-group 20 mode active

Interface Port-channel 20

Switch mode trunk

Vpc 20

N5K-1# sho int brief

Ethernet VLAN Type Mode Status Reason Speed Por

T

Interface Ch

#

Eth2/1 1 eth access up none 10G (D)-

Eth2/2 1 eth access down SFP not inserted 10G (D)-

Eth2/3 1 eth access down SFP not inserted 10G (D)-

Eth2/4 1 eth access down SFP not inserted 10G (D)-

Eth2/5 1 eth access up none 10G (D)-

Eth2/6 1 eth access down SFP not inserted 10G (D)-

Eth2/7 1 eth access down SFP not inserted 10G (D)-

Eth2/8 1 eth access down SFP not inserted 10G (D)-

Eth2/9 1 eth fabric up none 10G (D)-- > if you want to configure FEX, the mode of the interface is switchport mode fex-fabric

Eth2/10 1 eth access down SFP not inserted 10G (D)-

Eth2/11 1 eth access down SFP not inserted 10G (D)-

Eth2/12 1 eth access down SFP not inserted 10G (D)-

Eth2/13 1 eth access down SFP not inserted 10G (D)-

Eth2/14 1 eth access down SFP not inserted 10G (D)-

Eth2/15 1 eth access down SFP not inserted 10G (D)-

Eth2/16 1 eth access down SFP not inserted 10G (D)-

Eth2/17 1 eth access down SFP not inserted 10G (D)-

Eth2/18 1 eth access down SFP not inserted 10G (D)-

Eth2/19 1 eth access down SFP not inserted 10G (D)-

Eth2/20 1 eth access down SFP not inserted 10G (D)-

Eth2/21 1 eth access down SFP not inserted 10G (D)-

Eth2/22 1 eth access down SFP not inserted 10G (D)-

Eth2/23 1 eth access down SFP not inserted 10G (D)-

Eth2/24 1 eth access down SFP not inserted 10G (D)-

Eth2/25 1 eth access down SFP not inserted 10G (D)-

Eth2/26 1 eth access down SFP not inserted 10G (D)-

Eth2/27 1 eth access down SFP not inserted 10G (D)-

Eth2/28 1 eth access down SFP not inserted 10G (D)-

Eth2/29 1 eth access down SFP not inserted 10G (D)-

Eth2/30 1 eth access down SFP not inserted 10G (D)-

Eth2/31 1 eth access down SFP not inserted 10G (D)-

Eth2/32 1 eth access down SFP not inserted 10G (D)-

Port VRF Status IP Address Speed MTU

Mgmt0-up 172.16.1.1 1000 1500

When PL is first configured:

N5K-1# sho vpc

Legend:

(*) local vPC is down, forwarding via vPC peer-link

VPC domain id: 10

Peer status: peer adjacency formed ok

VPC keep-alive status: peer is alive

Configuration consistency status: success

Per-vlan consistency status: success

Type-2 consistency status: success

VPC role: primary

Number of vPCs configured: 0

Peer Gateway: Disabled

Dual-active excluded VLANs:-

Graceful Consistency Check: Enabled

Auto-recovery status: Enabled (timeout = 240seconds)

VPC Peer-link status

Id Port Status Active vlans

1 Po10 up 1,10

When the vPC connected to C4500 is configured.

N5K-1# show vpc

Legend:

(*) local vPC is down, forwarding via vPC peer-link

VPC domain id: 10

Peer status: peer adjacency formed ok

VPC keep-alive status: peer is alive

Configuration consistency status: success

Per-vlan consistency status: success

Type-2 consistency status: success

VPC role: primary

Number of vPCs configured: 1

Peer Gateway: Disabled

Dual-active excluded VLANs:-

Graceful Consistency Check: Enabled

Auto-recovery status: Enabled (timeout = 240seconds)

VPC Peer-link status

Id Port Status Active vlans

1 Po10 up 1,10

VPC status

Id Port Status Consistency Reason Active vlans

20 Po20 up success success 1,10

View consistency parameters

N5K-1# show vpc consistency-parameters interface port-channel 10

Note: * * Global type-1 parameters will be displayed for peer-link *

Legend:

Type 1: vPC will be suspended in case of mismatch

Name Type Local Value Peer Value

QoS 2 ([], [], []

[]) [])

Network QoS (MTU) 2 (1538, 0,0,0,0) (1538, 0,0,0,0,0)

Network Qos (Pause) 2 (F, F) (F, F)

Input Queuing (Bandwidth) 2 (100,0,0,0,0) (100,0,0,0,0,0)

Input Queuing (Absolute 2 (F, F) (F, F)

Priority)

Output Queuing (Bandwidth) 2 (100,0,0,0,0) (100,0,0,0,0,0)

Output Queuing (Absolute 2 (F, F) (F, F)

Priority)

STP Mode 1 Rapid-PVST Rapid-PVST

STP Disabled 1 None None

STP MST Region Name 1 "

STP MST Region Revision 1 0 0

STP MST Region Instance to 1

VLAN Mapping

STP Loopguard 1 Disabled Disabled

STP Bridge Assurance 1 Enabled Enabled

STP Port Type, Edge 1 Normal, Disabled, Normal, Disabled

BPDUFilter, Edge BPDUGuard Disabled Disabled

STP MST Simulate PVST 1 Enabled Enabled

Interface-vlan admin up 2 10 10

Interface-vlan routing 2 1,10 1,10

Capability

IGMP Snooping Group-Limit 2 4000 4000

Allowed VLANs-1, 10, 10, 10.

Local suspended VLANs-

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report