《cisco-6509配置手册》由会员分享,可在线阅读,更多相关《cisco-6509配置手册(20页珍藏版)》请在金锄头文库上搜索。
1、cisco 6509交换机配置手册一个经典配置包括Catalyst6509 4006交换机配置方案拓扑图如下:一、 Catalyst 6509交换机配置方案1.1、配置6509二层交换Console (enable) set system name bg-sw-01 /设备名称Bg-sw-01 (enable) set password Enter old password: Enter new password: test /设备口令Retype new password: testBg-sw-01 (enable) set enablepass Enter old password: En
2、ter new password: test /设备口令Retype new password: test Bg-sw-01 (enable) set banner motd % Welcome to the c6509 in the office %/提示文本Bg-sw-01 (enable) set interface sc0 10.234.180.21 255.255.255.0 /设置管理接口 #sh intBg-sw-01 (enable) set ip route default 10.234.180.234 /设置默认网关 #sh ip routeBg-sw-01 (enable
3、) set vtp mode server /设置VTP模式 #sh vtp domainBg-sw-01 (enable) set vtp domain Core_Net /设置VTP域名Bg-sw-01 (enable) set vlan 31 name ZhongSanLu /创建VLAN #sh vlanBg-sw-01 (enable) set vlan 32 name YiYangBg-sw-01 (enable) set vlan 33 name JianXiuBg-sw-01 (enable) set vlan 34 name RaoDianBg-sw-01 (enable)
4、set vlan 35 name JinSanLouBg-sw-01 (enable) set vlan 36 name WuZiBg-sw-01 (enable) set port channel 1/1-2 on /设置Channel #sh port channelBg-sw-01 (enable) set trunk 1/1 on dot1q 1-1005Bg-sw-01 (enable) set trunk 2/2 on dot1q 1-1005 /设置trunk口 #sh trunk #Bg-sw-01 (enable) set trunk 2/3 on dot1q 1-1005B
5、g-sw-01 (enable) set trunk 2/4 on dot1q 1-1005Bg-sw-01 (enable) set trunk 2/5 on dot1q 1-1005Bg-sw-01 (enable) set trunk 2/6 on dot1q 1-1005Bg-sw-01 (enable) set trunk 2/7 on dot1q 1-1005Bg-sw-01 (enable) set spantree root 1-40 dia 4 /设为spantree的根#sh spantreeBg-sw-01 (enable) set spantree portfast 1
6、/1-2 enable /设spantree端口快速启用 Bg-sw-01 (enable) set spantree portfast 2/1-8 enable Bg-sw-01 (enable) set spantree uplinkfastenable /设spantree端口快速切换 Bg-sw-01 (enable) set spantree backbonefast enable /设spantree端口快速定位根 1.2、配置路由Console (enable) session 15/进入路由子卡Router(config)# hostname c6509-msfc /设备名c6
7、509-msfc (config)# enable password test /设口令c6509-msfc (config)# enable secret testC6509-msfc(config)# banner motd % Welcome to the c6509-msfc in the Office %/设提示文本c6509-msfc (config)# line vty 0 4 / 进入VTY模式c6509-msfc (config-line)#login/ 登入提示c6509-msfc (config-line)#password test / 设用户级口令c6509-msfc
8、 (config-line)# endC6509-msfc#configure terminal / 进入全局模式Enter configuration commands, one per line. End with CNTL/Z.C6509-msfc(config)# interface vlan 1/进入虚子接口C6509-msfc(config-if)# ip address 10.234.180.232 255.255.255.0 /加ip地址 C6509-msfc(config-if)# no shutdown/开启端口C6509-msfc(config-if)# standby
9、1 ip 10.234.180.234/建HSRP组并设虚IP地址C6509-msfc(config-if)# standby 1 priority 110 /设优先级C6509-msfc(config-if)# standby 1 preempt/设切换许可C6509-msfc(config-if)# interface vlan 31C6509-msfc(config-if)# ip address 10.234.181.60 255.255.255.192C6509-msfc(config-if)# no shutdownC6509-msfc(config-if)# standby 31
10、 ip 10.234.181.62C6509-msfc(config-if)# standby 31 priority 110C6509-msfc(config-if)# standby 31 preemptC6509-msfc(config-if)# interfacevlan 32C6509-msfc(config-if)# ip address 10.234.181.124 255.255.255.192C6509-msfc(config-if)# no shutdownC6509-msfc(config-if)# standby 32 ip 10.234.181.126C6509-ms
11、fc(config-if)# standby 32 priority 110C6509-msfc(config-if)# standby 32 preemptC6509-msfc(config-if)# interface vlan 33C6509-msfc(config-if)# ip address 10.234.181.188 255.255.255.192C6509-msfc(config-if)# no shutdownC6509-msfc(config-if)# standby 33 ip 10.234.181.190C6509-msfc(config-if)# standby 3
12、3 priority 110C6509-msfc(config-if)# standby 33 preemptC6509-msfc(config-if)# interface vlan 34C6509-msfc(config-if)# ip address 10.234.181.220 255.255.255.224C6509-msfc(config-if)# no shutdownC6509-msfc(config-if)# standby 34 ip 10.234.181.222C6509-msfc(config-if)# standby 34 priority 110C6509-msfc
13、(config-if)# standby 34 preemptC6509-msfc(config-if)# interface vlan 35C6509-msfc(config-if)# ip address 10.234.181.254 252.255.255.224C6509-msfc(config-if)# no shutdownC6509-msfc(config-if)# standby 35 ip 10.234.181.254C6509-msfc(config-if)# standby 35 priority 110C6509-msfc(config-if)# standby 35
14、preemptC6509-msfc(config-if)# interface vlan 36C6509-msfc(config-if)# ip address 10.234.182.28 255.255.255.224C6509-msfc(config-if)# no shutdown C6509-msfc(config-if)# standby 36 ip 10.234.182.30C6509-msfc(config-if)# standby 36 priority 110C6509-msfc(config-if)# standby 36 preemptC6509-msfc(config-if)# exitC6509-msfc #copy running configpage二、Catalyst 4006交换机配置方案2.1、配置4006二层交换(三层交换模块安置在第二个槽)Console (enable) set system name bg-sw-02 /设备名称Bg-sw-02 (enable) set password Enter old password: Enter new password: test /设备口令Retype new password: testBg-sw-02 (enable) set enablepass