Cisco Virtual Port Channel (Sanal Bağlantı Noktası Kanalı), iki Cisco Nexus anahtarının tek bir anahtarmış gibi birlikte çalışmasına olanak tanıyan L2 mantıksal bir teknolojidir. vPC, Multichassis EtherChannel [MCEC] teknoloji ailesine aittir.Bu, bir grup sunucunun kullanabileceği genel bant genişliğini artırmak istediğinizde veya bir anahtar arızası durumunda yedeklilik sağlamak istediğinizde olduğu gibi, birkaç durumda faydalı olabilir.
vPC aşağıdaki teknik faydaları nelerdir;
- Yayılan Ağaç Protokolü (STP) tarafından engellenen bağlantı noktalarını ortadan kaldırır ve döngüsüz bir topoloji sağlar.
- Mevcut tüm yukarı bağlantı bant genişliğini kullanır.
- Çift bağlantılı sunucuların (çift yukarı bağlantı) aktif-aktif modda çalışmasına izin verir.
- Bağlantı veya cihaz arızası üzerine hızlı yakınsama(Converge) sağlar.
- Ağ tasarımını basitleştirir.
Opsiyonel STP Ayarları;
spanning tree path-cost method long
spanning-tree vlan 1-4094 priority 0
spanning-tree port type edge bpduguard default
port-channel load-balance src-dst ip-l4port-vlan
interface ethernet x/x
spanning-tree bpduguard enable
N3K-1 | N3K-2 |
feature vpc | feature vpc |
feature lacp | feature lacp |
! | ! |
interface mgmt0 | interface mgmt0 |
ip address 1.1.1.1/30 | ip address 1.1.1.2/30 |
no shutdown | no shutdown |
! | ! |
vpc domain 101 | vpc domain 101 |
role priority 1 | role priority 2 |
system-priority 4096 | system-priority 4096 |
peer-keepalive destination 1.1.1.2 source 1.1.1.1 vrf management | peer-keepalive destination 1.1.1.1 source 1.1.1.2 vrf management |
peer-switch | peer-switch |
peer-gateway | peer-gateway |
graceful consistency-check | graceful consistency-check |
delay restore 180 | delay restore 180 |
ip arp synchronize | ip arp synchronize |
auto-recovery | auto-recovery |
auto-recovery reload-delay | auto-recovery reload-delay |
! | ! |
interface port-channel999 | interface port-channel999 |
no shutdown | no shutdown |
description vPC-Peer-Link | description vPC-Peer-Link |
switchport | switchport |
switchport mode trunk | switchport mode trunk |
spanning-tree port type network | spanning-tree port type network |
vpc peer-link | vpc peer-link |
! | ! |
interface eth 1/53-54 | interface eth 1/53-54 |
description vPC Peer-Link | description vPC Peer-Link |
switchport | switchport |
switchport mode trunk | switchport mode trunk |
channel-group 999 mode active | channel-group 999 mode active |
no shutdown | no shutdown |
N3K-1 & N3K-2 vPC Kenar Switch Uplink |
interface Ethernet1/48 |
description N3K to Edge-Sw-UpLINK |
switchport mode trunk |
spanning-tree port type normal |
channel-group 148 mode active |
! |
interface po148 |
description N3K to EDGE-SW-UpLINK |
switchport mode trunk |
spanning-tree port type normal |
spanning-tree root-guard |
vpc 148 |
cli alias name wr copy running-config startup-config
''Kenar Switch''
L2 Etherchannel Uplink |
int port-channel 1 |
description KS to N3K-UPLINK |
switchport mode trunk |
switchport trunk allowed vlan 20,30,40 |
! |
interface range gig1/0/23-24 |
description KS to N3K-UPLINK |
switchport mode trunk |
switchport trunk allowed vlan 20,30,40 |
VPC Keep-Alive Önerilen Yapılandırma;
• VPC Keep-Alive (Eş Canlı Tutma Bağlantısı) (L3 Bağlantıdır)
• Mgmt0, SuperVisor üzerinde tek bir bağlantı noktasıdır.
İki adet (Dual Supervisor Engine) kullanıyorsanız, biri başarısız olduğunda sorun ortaya çıkar. Bu durumda, mgmt0 bağlantısını sup1'den sup2'ye manuel olarak taşımanız gerekir (çünkü yalnızca Aktif Sup'ta çalışır). Bu durumda Mgmt0 kullanmak yerine aşağıdaki yapılandırma örneği ile yedeklilik sağlayabilirsiniz.
description ****vPC Keepalive****
!
vpc domaix 101
peer-keepalive destination 1.1.1.2 source 1.1.1.1 vrf VPC_L3_Keepalive
!
interface Ethernet1/10-11
description ****vPC Keepalive****
no switchport
channel-group 100 mode active
!
interface port-channel100
description ****vPC Keepalive****
vrf member VPC_L3_Keepalive
no switchport
ip address 1.1.1.[1-2]/30
vPC Kontrol Komutları;
show feature = vPC'nin etkin olup olmadığını görüntüler.
show vpc brief = vPC'ler hakkında kısa bilgi görüntüler.
show vpc consistency-parameters = Her iki vPC eş anahtarındaki tüm vPC arabirimlerinde sabit/tutarlı olması gereken parametrelerin mevcut durumunu görüntüler.
show running-config vpc = vPC'ler için çalışan yapılandırma bilgilerini görüntüler.
show port-channel capacity = Cihazda kaç bağlantı noktası kanalının yapılandırıldığını ve kaç tanesinin hala kullanılabilir olduğunu görüntüler.
show vpc statistics = vPC'ler hakkında istatistikleri görüntüler.
show vpc peer-keepalive = Eş-tutma mesajlarıyla ilgili bilgileri görüntüler.
show vpc role = Rolü, vPC sistemi MAC adresi ve sistem önceliği ve ayrıca yerel cihazın MAC adresi ve önceliği dahil olmak üzere vPC eşinin durumunu görüntüler.