VPC配置案例
admin
2023-04-11 03:03:14
0

拓扑:
VPC配置案例
配置:
N9K-1:

vlan 1-500

vrf context APP
vrf context CTRIX
vrf context DB
vrf context Keep_alive
vrf context VM
vrf context management
vpc domain 1000
peer-switch
role priority 65535
peer-keepalive destination 172.16.1.2 source 172.16.1.1 vrf Keep_alive
auto-recovery

interface Vlan1

interface Vlan10
no shutdown
vrf member VM
ip address 10.10.1.251/24
hsrp 10
ip 10.10.1.254
hsrp 20
preempt
priority 110

interface Vlan20
no shutdown
vrf member VM
ip address 10.10.2.251/24
hsrp 20
preempt
priority 110
ip 10.10.2.254

interface Vlan30
no shutdown
vrf member APP
ip address 10.10.3.251/24
hsrp 30
preempt
priority 110
ip 10.10.3.254

interface Vlan40
no shutdown
vrf member APP
ip address 10.10.4.251/24
hsrp 40
preempt
priority 110
ip 10.10.4.254

interface Vlan50
no shutdown
vrf member CTRIX
ip address 10.10.5.251/24
hsrp 50
preempt
priority 110
ip 10.10.5.254

interface Vlan60
no shutdown
vrf member CTRIX
ip address 10.10.6.251/24
hsrp 60
preempt
priority 110
ip 10.10.6.254

interface Vlan70
no shutdown
vrf member DB
ip address 10.10.7.251/24
hsrp 70
preempt
priority 110
ip 10.10.7.254

interface Vlan80
no shutdown
vrf member DB
ip address 10.10.8.251/24
hsrp 80
preempt
priority 110
ip 10.10.8.254

interface port-channel10
no switchport
vrf member Keep_alive
ip address 172.16.1.1/30

interface port-channel20
switchport mode trunk
spanning-tree port type network
vpc peer-link

interface port-channel30
switchport mode trunk
vpc 101

interface Ethernet1/1
no switchport
channel-group 10 mode active
no shutdown

interface Ethernet1/2
no switchport
channel-group 10 mode active
no shutdown

interface Ethernet1/3
switchport mode trunk
channel-group 20 mode active

interface Ethernet1/4
switchport mode trunk
channel-group 20 mode active

interface Ethernet1/5
switchport mode trunk
channel-group 30 mode active
N9K-2:

cfs eth distribute
feature interface-vlan
feature hsrp
feature lacp
feature vpc

vlan 1-500

vrf context APP
vrf context CTRIX
vrf context DB
vrf context Keep_alive
vrf context VM
vrf context management
vpc domain 1000
peer-switch
peer-keepalive destination 172.16.1.1 source 172.16.1.2 vrf Keep_alive
auto-recovery

interface Vlan1

interface Vlan10
no shutdown
vrf member VM
ip address 10.10.1.252/24
hsrp 10
ip 10.10.1.254

interface Vlan20
no shutdown
vrf member VM
ip address 10.10.2.252/24
hsrp 20
ip 10.10.2.254

interface Vlan30
no shutdown
vrf member APP
ip address 10.10.3.252/24
hsrp 30
ip 10.10.3.254

interface Vlan40
no shutdown
vrf member APP
ip address 10.10.4.252/24
hsrp 40
ip 10.10.4.254

interface Vlan50
no shutdown
vrf member CTRIX
ip address 10.10.5.252/24
hsrp 50
ip 10.10.5.254

interface Vlan60
no shutdown
vrf member CTRIX
ip address 10.10.6.252/24
hsrp 60
ip 10.10.6.254

interface Vlan70
no shutdown
vrf member DB
ip address 10.10.7.252/24
hsrp 70
ip 10.10.7.254

interface Vlan80
no shutdown
vrf member DB
ip address 10.10.8.252/24
hsrp 80
ip 10.10.8.254

interface port-channel10
no switchport
vrf member Keep_alive
ip address 172.16.1.2/30

interface port-channel20
switchport mode trunk
spanning-tree port type network
vpc peer-link

interface port-channel30
switchport mode trunk
vpc 101

interface Ethernet1/1
no switchport
channel-group 10 mode active
no shutdown

interface Ethernet1/2
no switchport
channel-group 10 mode active
no shutdown

interface Ethernet1/3
switchport mode trunk
channel-group 20 mode active

interface Ethernet1/4
switchport mode trunk
channel-group 20 mode active

interface Ethernet1/5
switchport mode trunk
channel-group 30 mode active
N5K:
vlan 1-500

vrf context management

interface port-channel30
switchport mode trunk

interface Ethernet1/1
switchport mode trunk
channel-group 30 mode active

interface Ethernet1/2
switchport mode trunk
channel-group 30 mode active
在N9K上查看VPC状态如下:
VPC配置案例
要点总结:
(1)keep_alive最好一个vrf,并且最好一个做链路聚合
(2)最好配置auto-recovery和peer-switch

相关内容

热门资讯

实探杭州“被电商拉黑”街道:随... 据扬子晚报报道,5月6日,一名网友在社媒发帖称,自己在某电商平台看中了一款商品,商品界面却显示其地址...
大连女子烧烤店内用铁签喂狗,十... 5月11日,一段网传视频显示,女子让宠物狗坐在辽宁大连一家烧烤店的卡座上,并用铁签将肉串喂给宠物狗,...
沃尔核材获得实用新型专利授权:... 证券之星消息,根据天眼查APP数据显示沃尔核材(002130)新获得一项实用新型专利授权,专利名为“...
科技伦理审查助力人工智能产业高... 转自:证券日报     本报记者 郭冀川     随着AI(人工智能)技术迭代加速,相关伦理审查的重...
捷昌驱动获得实用新型专利授权:... 证券之星消息,根据天眼查APP数据显示捷昌驱动(603583)新获得一项实用新型专利授权,专利名为“...
2026云手机为什么这么火?这... 你是否也有过这样的念头:想试试云手机,但一看价格,月付几十甚至上百元,立马打了退堂鼓?又或者,你曾贪...
OPPO失智,武大失格,舆论失... 无知,无品,无趣。文 | 佘宗明小说《围城》里,方鸿渐在张家跟张小姐相亲,看到书架上有本《怎样去获得...
百名上海交大学子携40项科研成... 中新网上海5月11日电(记者 许婧)未来电池如何破解“放着也会老化”的难题?免疫细胞与癌细胞的“对话...
你的蓝牙耳机正在 “偷听”?这... 在科技飞速发展的当下,无线耳机、智能手表、无线键盘等蓝牙设备凭借“一键连接”带来的便捷优势,已广泛应...
微信状态能看访客了?热搜爆了!... 5月11日晚间,#微信状态 访客记录#话题冲上微博热搜,引发大量网友讨论。 有网友发帖询问:“微信...