设为首页 收藏本站
查看: 1382|回复: 0

[经验分享] 思科VSS配置命令

[复制链接]
累计签到:1 天
连续签到:1 天
发表于 2016-5-12 09:09:50 | 显示全部楼层 |阅读模式
Cisco的VSS与H3C的IRF相似

步聚
6509-1配置
第一步、初始化Catalyst 6509交换机
VSS-sw1#conf t

6509-2配置

VSS-sw2#conf t
第二步、
配置VSS Domain ID;


VSS-sw1(config)#switch virtual  domain 100
Domain ID 100 config will take
effect only
after the exec command ‘switch
convert mode virtual’ is issued



6509-2配置

VSS-sw2(config)#switch virtual  domain 100
第三步、
设置交换机Switch ID;

VSS-sw1(config-vs-domain)#switch 1

6509-2配置

VSS-sw2(config-vs-domain)#switch 2
第四步、
检验交换机Switch ID;

VSS-sw1#switch read switch_num
Read switch_num from rommon is 1


6509-2配置

VSS-sw2#switch read switch_num
Read switch_num from rommon is 2
第五步、
配置VSL;

VSS-sw1#conf t
VSS-sw1(config)#interface portchannel 1
VSS-sw1(config-if)#switch virtual link 1
VSS-sw1(config-if)#no shut

6509-2配置

VSS-sw2#conf t
VSS-sw2(config)#interface portchannel 2
VSS-sw2(config-if)#switch virtual link 2
VSS-sw2(config-if)#no shut
物理接口划入端口组

VSS-sw1(config)#interface range
tenGigabitEthernet 5/4 - 5
VSS-sw1(config-if-range)#channelgroup 1 mode on
VSS-sw1(config-if-range)#no shut

Switch-1# platform hardware vsl pfc mode pfc3c

6509-2配置


VSS-sw2(config)#interface range
tenGigabitEthernet 5/4 - 5
VSS-sw2(config-if-range)#channelgroup 2 mode on
VSS-sw2(config-if-range)#no shut

Switch-2# platform hardware vsl pfc mode pfc3c
第六步、
VSS模式转换

VSS-sw1#switch convert mode  virtual
This command will convert all
interface names to naming
convention “interface-type
switch-number/slot/port”, save
the running config to startupconfig
and reload the switch.
Do you want to proceed? [yes/no]: yes
Converting interface names
Building configuration...
[OK]
Saving converted configurations
to bootflash …
[OK]


6509-2配置

VSS-sw2#switch convert mode  virtual
This command will convert all
interface names to naming
convention “interface-type
switch-number/slot/port”, save
the running config to startupconfig
and reload the switch.
Do you want to proceed? [yes/no]: yes
Converting interface names
Building configuration...
[OK]
Saving converted configurations
to bootflash…
[OK]

第七步、
重启交换机


System detected Virtual Switch
configuration...
Interface TenGigabitEthernet1/5/4 is member of PortChannel 1
Interface TenGigabitEthernet1/5/5 is member of PortChannel 1
<snip>
00:00:26: %VSL_BRINGUP-6-
MODULE_UP: VSL module in slot 5
switch 1 brought up
Initializing as Virtual Switch Active

00:08:01: SW1_SP: Card inserted in
Switch_number = 2 ,
physical slot 3,
interfaces are now online
VSS >
VSS>en
VSS#

6509-2配置

System detected Virtual Switch
configuration...
Interface TenGigabitEthernet2/5/4 is member of PortChannel 2
Interface TenGigabitEthernet2/5/5 is member of PortChannel 2
<snip>
00:00:26: %VSL_BRINGUP-6-
MODULE_UP: VSL module in slot 5
switch 2 brought up
Initializing as Virtual Switch standby

00:01:43: %CRYPTO-6-ISAKMP_ON_OFF:
ISAKMP is OFF
00:01:43: %CRYPTO-6-ISAKMP_ON_OFF:
ISAKMP is OFF
VSS-sdby>
Standby console disabled
第八步、
检验VSS配置


VSS#show switch virtual
Switch mode : Virtual Switch
Virtual switch domain number : 100
Local switch number : 1
Local switch operational role: Virtual Switch Active
Peer switch number : 2
Peer switch operational role : Virtual Switch Standby

第九步、
主备配置同步


VSS#switch accept mode virtual
This command will bring in all VSL configurations from the standby
switch and populate it into the running configuration.
White Paper
All contents are Copyright  1992–2008 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 27 of 80
In addition the startup configurations will be updated with the new
merged configurations.
Do you want proceed? [yes/no]: yes
Merging the standby VSL configuration. . .
Building configuration...
[OK]

第十步、
配置VSL Failure
(有两种方式:)
1、PAGP
2、BFD



PAGP,好像说下面的接入要在4500以上。反正做试验没有成功。

vss(config)# interface port-channel 20
vss(config-if)# shutdown
vss(config-if)# exit
vss(config)# switch virtual domain 100
vss(config-vs-domain)# dual-active detection pagp
vss(config-vs-domain)# dual-active detection pagp trust channel-group 20
vss(config-vs-domain)# exit
vss(config)# interface port-channel 20
vss(config-if)# no shutdown
vss(config-if)# exit
vss#conf t
Enter configuration commands, one per line. End with CNTL/Z.
vss(config)#switch virtual domain 100
vss(config-vs-domain)#dual-active detection pagp
vss(config-vs-domain)#dual-active trust channel-group 20
vss(config-vs-domain)#

BFD配置,
试验是成功的。




vss (config)# interface gigabitethernet 1/5/3
vss (config-if)# no switchport
vss(config-if)# ip address 200.230.230.231 255.255.255.0
vss (config-if)# bfd interval 100 min_rx 100 multiplier 50
vss (config-if)# no shutdown
vss(config-if)# interface gigabitethernet 2/5/3
vss(config-if)# no switchport
vss(config-if)# ip address 201.230.230.231 255.255.255.0
vss (config-if)# bfd interval 100 min_rx 100 multiplier 50
vss(config-if)# no shutdown
vss(config-if)# exit
vss (config)# switch virtual domain 100
vss (config-vs-domain)# dual-active detection bfd
vss (config-vs-domain)# dual-active pair interface g 1/9/48 interface g 2/1/48 bfd
adding a static route 200.230.230.0 255.255.255.0 Gi2/1/48 for this dual-active pair adding a static route 201.230.230.0 255.255.255.0 Gi1/9/48 for this dual-active pair
vss(config-vs-domain)# exit
vss(config)# exit
vss# show switch virtual dual-active bfd
Bfd dual-active detection enabled: Yes Bfd dual-active interface pairs configured: interface1 Gi1/9/48 interface2 Gi2/1/48


设置两台交换机的priority
vss#conf t
Enter configuration commands, one per line. End with CNTL/Z.
vss(config)#switch virtual domain 100
vss(config-vs-domain)#switch 1 priority 110
*Jul 7 08:59:11.913: %VSLP-SW1_SPSTBY-5-RRP_RT_CFG_CHANGE: Configured
priority value
is different from operational value.
Change will take effect after config is saved and switch is reloaded.
vss(config-vs-domain)#switch 2 priority 100
vss(config-vs-domain)#^Z
vss#
第十一步、
保存配置

vss#conf t
Enter configuration commands, one per line. End with CNTL/Z.
vss(config)#wr



运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-215847-1-1.html 上篇帖子: 交换机出现err-disable的原因 下篇帖子: 无线信道划分标准 思科
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表