1、cisco6509配置手册cisco 6509 交换机配置手册一个经典配置包括 Catalyst6509 4006 交换机配置方案拓扑图如下:一、 Catalyst 6509 交换机配置方案1.1 、配置 6509 二层交换Console (enable) set system name bg-sw-01 /设备名称Bg-sw-01 (enable) set passwordEnter old password:Enter new password: test/ 设备口令Retype new password: testBg-sw-01 (enable) set enablepassEnter
2、 old password:Enter new password: test / 设备口令Retype new password: testBg-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 iprout
3、eBg-sw-01 (enable) set vtp mode server / 设置 VTP模式 #sh vtpdomainBg-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 Rao
4、DianBg-sw-01 (enable) set vlan 35 name JinSanLouBg-sw-01 (enable) set vlan 36 name WuZiBg-sw-01 (enable) set port channel 1/1-2 on / 设置 Channel #shport 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
5、trunk 2/3 on dot1q 1-1005Bg-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 (e
6、nable) set spantree portfast 1/1-2 enable / 设 spantree 端口快速启用Bg-sw-01 (enable) set spantree portfast 2/1-8 enableBg-sw-01 (enable) set spantree uplinkfast enable / 设 spantree 端口快速切换Bg-sw-01 (enable) set spantree backbonefast enable / 设 spantree 端口快速定位根1.2 、配置路由Console (enable) session 15 / 进入路由子卡Rou
7、ter(config)# hostname c6509-msfc / 设备名c6509-msfc (config)# enable password testc6509-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-
8、line)#password test/设用户级口令c6509-msfc (config-line)# endC6509-msfc#configure terminal / 进入全局模式Enter configuration commands, one per line. End with CNTL/Z.C6509-msfc(config)# interface vlan 1C6509-msfc(config-if)# ip address 10.234.180.232 255.255.255.0 /C6509-msfc(config-if)# no shutdownC6509-msfc(co
9、nfig-if)# standby 1 ip 10.234.180.234虚IP地址/ 进入虚子接口加 ip 地址/ 开启端口/ 建 HSRP组并设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
10、 shutdownC6509-msfc(config-if)# standby 31 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
11、-if)# standby 32 ip 10.234.181.126C6509-msfc(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.2
12、34.181.190C6509-msfc(config-if)# standby 33 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(con
13、fig-if)# standby 34 priority 110C6509-msfc(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 prio
14、rity 110C6509-msfc(config-if)# standby 35 preemptC6509-msfc(config-if)# interface vlan 36C6509-msfc(config-if)# ip address 10.234.182.28 255.255.255.224C6509-msfc(config-if)# no shutdownC6509-msfc(config-if)# standby 36 ip 10.234.182.30C6509-msfc(config-if)# standby 36 priority 110C6509-msfc(config-
15、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 passwordEnter old password:Enter new password: test/ 设备口令Retype new password: testBg-sw-02
16、 (enable) set enablepassEnter old password:Enter new password: test / 设备口令Retype new password: testBg-sw-02 (enable) set banner motd % Welcome to the c4006 in the office % / 提示文本Bg-sw-02 (enable) set interface sc0 10.234.180.22intBg-sw-02 (enable) set ip route default 10.234.180.234 /255.255.255.0 /
17、 设置管理接口 #sh设置默认网关 #sh ip routeBg-sw-02 (enable) set vtp mode server / 设置 VTP模式 #sh vtp domainBg-sw-02 (enable) set vtp domain Core_Net / 设置 VTP域名Bg-sw-02 (enable) set vlan 31 name ZhongSanLu / 创建 VLAN #sh vlanBg-sw-02 (enable) set vlan 32 name YiYangBg-sw-02 (enable) set vlan 33 name JianXiuBg-sw-02
18、 (enable) set vlan 34 name RaoDianBg-sw-02 (enable) set vlan 35 name JinSanLouBg-sw-02 (enable) set vlan 36 name WuZiBg-sw-02 (enable) set port channel 1/1-2 on / 设置 Channel #sh port channelBg-sw-02 (enable) set trunk 1/1 on dot1q 1-1005Bg-sw-02 (enable) set port channel 2/1-2 on / 设置 Channel #sh po
19、rt channelBg-sw-02 (enable) set trunk 2/1 on dot1q 1-1005Bg-sw-02 (enable) set trunk 4/1 on dot1q 1-1005 / 设置 trunk 口 #sh trunk #Bg-sw-02 (enable) set trunk 4/3 on dot1q 1-1005Bg-sw-02 (enable) set trunk 4/4 on dot1q 1-1005Bg-sw-02 (enable) set spantree root secondary 1-40 dia 4Bg-sw-02 (enable) set
20、 spantree portfast 1/1-2 enable / 设 spantree 端口快速启用Bg-sw-02 (enable) set spantree portfast 2/1-34 enableBg-sw-02 (enable) set spantree portfast 3/1-32 enableBg-sw-02 (enable) set spantree portfast 4/1-6 enableBg-sw-02 (enable) set spantree uplinkfast enable / 设 spantree 端口快速切换Bg-sw-02 (enable) set s
21、pantree backbonefast enable / 设 spantree 端口快速定位根2.1 、配置三层交换模块(三层交换模块安置在第二)Console (enable) session 2 / 进入路由子卡Router(config)# hostname c4006-L3 / 设备名c4006-L3 (config)# enable password testc4006-L3 (config)# enable secret testc4006-L3(config)# banner motd % Welcome to the c4006-l3 in the Office % / 设口
22、令设提示文本c4006-L3 (config)# line vty 0 4 /进入VTY模式c4006-L3 (config-line)#login/登入提示c4006-L3 (config-line)#password test/设用户级口令c4006-L3 (config-line)# endC4006-L3#configure terminalEnter configuration commands, one per line. End with CNTL/Z.C4006-L3(config)# interface port-channel 1 / 建内部虚端口C4006-L3(conf
23、ig)# interface g3 / 进入接口模式C4006-L3(config-if)# channel-group 1 / 加入到 channelC4006-L3(config-if)# exitC4006-L3(config)# interface g4 / 进入接口模式C4006-L3(config-if)# channel-group 1 / 加入到 channel 组中组中C4006-L3(config-if)# exitC4006-L3(config)# interface port-channel 1.1 / 进入子接口模式C4006-L3(config-if)# encap
24、sulation dot1q 1 native / 封装 trunkC4006-L3(config-if)# ip address 10.234.180.233 255.255.255.0 / 加 ip 地址C4006-L3(config-if)# no shutdown / 开启端口C4006-L3(config-if)# standby 1 ip 10.234.180.234 / 建 HSRP组并设虚 IP 地址C4006-L3(config-if)# standby 1 priority 100 / 设优先级C4006-L3(config-if)# standby 1 preempt /
25、 设切换许可C4006-L3(config-if)# interface port-channel 1.31C4006-L3(config-if)# encapsulation dot1q 31C4006-L3(config-if)# ip address 10.234.181.61 255.255.255.192C4006-L3(config-if)# no shutdownC4006-L3(config-if)# standby 31 ip 10.234.181.62C4006-L3(config-if)# standby 31 priority 100C4006-L3(config-if
26、)# standby 31 preemptC4006-L3(config-if)# interface port-channel 1.32C4006-L3(config-if)# encapsulation dot1q 32C4006-L3(config-if)# ip address 10.234.181.125 255.255.255.192C4006-L3(config-if)# no shutdownC4006-L3(config-if)# standby 32 ip 10.234.181.126C4006-L3(config-if)# standby 32 priority 100C
27、4006-L3(config-if)# standby 32 preemptC4006-L3(config-if)# interface port-channel 1.33C4006-L3(config-if)# encapsulation dot1q 33C4006-L3(config-if)# ip address 10.234.181.189 255.255.255.192C4006-L3(config-if)# no shutdownC4006-L3(config-if)# standby 33 ip 10.234.181.190C4006-L3(config-if)# standby
28、 33 priority 100C4006-L3(config-if)# standby 33 preemptC4006-L3(config-if)# interface port-channel 1.34C4006-L3(config-if)# encapsulation dot1q 34C4006-L3(config-if)# ip address 10.234.181.221 255.255.255.224C4006-L3(config-if)# no shutdownC4006-L3(config-if)# standby 34 ip 10.234.181.222C4006-L3(co
29、nfig-if)# standby 34 priority 100C4006-L3(config-if)# standby 34 preemptC4006-L3(config-if)# interface port-channel 1.35C4006-L3(config-if)# encapsulation dot1q 35C4006-L3(config-if)# ip address 10.234.181.253 255.255.255.224C4006-L3(config-if)# no shutdownC4006-L3(config-if)# standby 35 ip 10.234.1
30、81.254C4006-L3(config-if)# standby 35 priority 100C4006-L3(config-if)# standby 35 preemptC4006-L3(config-if)# interface port-channel 1.36C4006-L3(config-if)# encapsulation dot1q 36C4006-L3(config-if)# ip address 10.234.182.29 255.255.255.224C4006-L3(config-if)# no shutdownC4006-L3(config-if)# standby 36 ip 10.234.182.30C4006-L3(config-if)# standby 36 priority 100C4006-L3(config-if)# standby 36 preemptC4006-L3(config-if)# exitC4006-L3#copy running configpage
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1