vPC (Virtual Port Channels)
. vPC는 서로 다른 장비사이 연결된 Port를 묶어서 논리적인 하나의 포트로 인식하게 하는 기존 Port-Channel의 확장된 개념
- 기존 Port-Channel은 Layer-2, Layer-3 모두 설정 가능하지만, vPC는 Layer 2만 가능하다.
. vPC Domain은 단일 VDC에서만 동작하기 때문에, 반드시 동일한 VDC에서 vPC Domain 선언을 해야한다.
' ' ' ' ' NXOS3 , NXOS4 InterLink 구간 vPC with HSRP Configuration. ' ' ' ' '
switch# configure terminal ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' step 1 : Lacp Port-Channel For vPC Peer-Link
Enter configuration commands, one per line. End with CNTL/Z.
switch(config)# feature vpc
switch(config)# feature lacp
switch(config)# interface port-channel 1
switch(config-if)# switchport
switch(config-if)# switchport mode trunk
switch(config-if)# exit
switch(config)# interface Eth1/7,Eth1/6,Eth1/3
switch(config-if-range)# no shutdown
switch(config-if-range)# switchport
switch(config-if-range)# switchport mode trunk
switch(config-if-range)# channel-group 1 mode active
switch(config-if-range)# exit
switch(config)# show port-channel summary
Flags: D - Down P - Up in port-channel (members)
I - Individual H - Hot-standby (LACP only)
s - Suspended r - Module-removed
b - BFD Session Wait
S - Switched R - Routed
U - Up (port-channel)
p - Up in delay-lacp mode (member)
M - Not in use. Min-links not met
--------------------------------------------------------------------------------
Group Port- Type Protocol Member Ports
Channel
--------------------------------------------------------------------------------
1 Po1(SU) Eth LACP Eth1/3(P) Eth1/6(P) Eth1/7(P)
switch(config)# interface Ethernet 1/5. ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' step 2 : vPC Peer-Link , vPC Keep-alive-Link
switch(config-if)# no shutdown
switch(config-if)# ip add 10.0.0.4/24
switch(config-if)# show ip int br | grep 10.0.0.4
Eth1/5 10.0.0.4 protocol-up/link-up/admin-up
switch(config-if)# exit
switch(config)# vpc domain 2
switch(config-vpc-domain)# peer-keepalive destination 10.0.0.3 source 10.0.0.4 vrf default
switch(config-vpc-domain)# exit
switch(config)# interface port-channel 1
switch(config-if)# switchport trunk allowed vlan 1-50
switch(config-if)# vpc peer-link
switch(config-if)# show vpc brief
Legend:
(*) - local vPC is down, forwarding via vPC peer-link
vPC domain id : 2
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 : secondary
Number of vPCs configured : 0
Peer Gateway : Disabled
Dual-active excluded VLANs : -
Graceful Consistency Check : Enabled
Auto-recovery status : Disabled
Delay-restore status : Timer is on.(timeout = 30s, 26s left)
Delay-restore SVI status : Timer is off.(timeout = 10s)
Operational Layer3 Peer-router : Disabled
Virtual-peerlink mode : Disabled
vPC Peer-link status
---------------------------------------------------------------------
id Port Status Active vlans
-- ---- ------ -------------------------------------------------
1 Po1 up 1
-- 망을 살펴보니 NXOS 1 HSRP Pri 200 , NXOS 2 Pri 160 (1,2 는 vpc domain 1)
NXOS 3 Pri 130 , NXOS 4 Pri 100 (3,4 는 vpc domain 2)