




已阅读5页,还剩15页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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: Enter 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) 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) 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-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 (enable) set spantree portfast 1/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 /设备名c6509-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 (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 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 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-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.234.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(config-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 priority 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 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 Enter old password: Enter new password: test /设备口令Retype new password: test Bg-sw-02 (enable) set banner motd % Welcome to the c4006 in the office % /提示文本Bg-sw-02 (enable) set interface sc0 10.234.180.22 255.255.255.0 /设置管理接口 #sh intBg-sw-02 (enable) set ip route default 10.234.180.234 /设置默认网关 #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 (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 port 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 spantree portfast 1/1-2 enable /设spantree端口快速启用 Bg-sw-02 (enable) set spantree portfast 2/1-34 enable Bg-sw-02 (enable) set spantree portfast 3/1-32 enable Bg-sw-02 (enable) set spantree portfast 4/1-6 enable Bg-sw-02 (enable) set spantree uplinkfastenable /设spantree端口快速切换 Bg-sw-02 (enable) set spantree backbonefast enable /设spantree端口快速定位根 2.1、配置三层交换模块(三层交换模块安置在第二)Console (enable) session 2 /进入路由子卡Router(config)# hostname c4006-L3 /设备名c4006-L3 (config)# enable password test /设口令c4006-L3 (config)# enable secret testc4006-L3(config)# banner motd % Welcome to the c4006-l3 in the Office % /设提示文本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(config)# interface g3 /进入接口模式C4006-L3(config-if)# channel-group 1 / 加入到channel组中C4006-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)# encapsulation 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 /设切换许可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)# 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 100C4006-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 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(config-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.181.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三、Catalyst 3500XL交换机配置方案3.1、办公楼Catalyst 3500XL交换机配置方案第一台Catalyst 3548switch#configure terminalEnter configuration commands, one per line. End with CNTL/Z.switch(config)#hostname bg-sw-03 /设备名bg-sw-03(config)#enable password test /设口令bg-sw-03(config)#enable secret testbg-sw-03(config)#banner motd % Welcome to the C3548 in the Office % /提示文本bg-sw-03(config)#line vty 0 4 / 进入VTY模式bg-sw-03(config.line)#login / 登入提示bg-sw-03(config.line)#password test / 设用户级口令bg-sw-03(config.line)#exitbg-sw-03 (config)#int vlan 1 / 进入内部管理接口bg-sw-03 (config-if)#ip address 10.234.180.23 255.255.255.0/加入IP地址bg-sw-03(config-if)#exitbg-sw-03(config)#ip default.gateway 10.234.180.234 /设网关bg-sw-03(config)#endbg-sw-03#vlan database / 进入vtp数据库bg-sw-03(vlan)#vtp domain Corp_Net /设vtp域bg-sw-03(vlan)#vtp client /设定vtp模式bg-sw-03(vlan)#exitbg-sw-03(config)#spantree uplinkfast/设定端口快速上连bg-sw-03(config)#int g0/1 /进入接口模式bg-sw-03(config-if)#switchport mode trunk /设为trunk模式bg-sw-03(config-if)#switchport trunk encapsulation dot1q/设定封装模式bg-sw-03(config-if)#switchport trunk allowed vlan all /设定trunk许可vlanbg-sw-03(config-if)#spanning-tree portfast /设定端口快速启用 bg-sw-03(config-if)#int g0/2/进入接口模式bg-sw-03(config-if)#switchport mode trunk /设为trunk模式bg-sw-03(config-if)#switchport trunk encapsulation dot1q/设定封装模式bg-sw-03(config-if)#switchport trunk allowed vlan all /设定trunk许可vlanbg-sw-03(config-if)#spanning-tree portfast /设定端口快速启用 bg-sw-03(config-if)#exitbg-sw-03#write memory第二台Catalyst 3548switch#configure terminalEnter configuration commands, one per line. End with CNTL/Z.switch(config)#hostname bg-sw-04 /设备名bg-sw-04(config)#enable password test /设口令bg-sw-04(config)#enable secret testbg-sw-04(config)#banner motd % Welcome to the C3548 in the Office % /提示文本bg-sw-04(config)#line vty 0 4 / 进入VTY模式bg-sw-04(config.line)#login / 登入提示bg-sw-04(config.line)#password test / 设用户级口令 bg-sw-04(config.line)#exit / 进入内部管理接口bg-sw-04(config)#int vlan 1bg-sw-04(config-if)#ip address 10.234.180.24 255.255.255.0bg-sw-04(config-if)#exitbg-sw-04(config)#ip default.gateway 10.234.180.234bg-sw-04(config)#endbg-sw-04#vlan databasebg-sw-04(vlan)#vtp domain Corp_Netbg-sw-04(vlan)#vtp clientbg-sw-04(vlan)#exitbg-sw-04(config)#spantree uplinkfastbg-sw-04(config)#int g0/1bg-sw-04(config-if)#switchport mode trunk bg-sw-04(config-if)#switchport trunk encapsulation dot1qbg-sw-04(config-if)#switchport trunk allowed vlan allbd-sw-03 (config-if)# spanning-tree portfastbg-sw-04(config-if)#exitbg-sw-04(config)#int g0/2bg-sw-04(config-if)#switchport mode trunk bg-sw-04(config-if)#switchport trunk encapsulation dot1qbg-sw-04(config-if)#switchport trunk allowed vlan allbg-sw-04(config-if)#spanning-tree portfastbg-sw-04(config-if)#exitbg-sw-04#write memory3.2 办公楼Catalyst 3548XL交换机配置方案switch#configure terminalEnter configuration commands, one per line. End with CNTL/Z.switch(config)#hostname zsr-sw-01zsr-sw-01(config)#enable password testzsr-sw-01(config)#enable secret testzsr-sw-01(config)#banner motd % Welcome to the C3548 in the Zhong San Lu ban Gong Lou %zsr-sw-01(config)#line vty 0 4zsr-sw-01(config.line)#loginzsr-sw-01(config.line)#password testzsr-sw-01(config.line)#exitzsr-sw-01(config)#int vlan 1zsr-sw-01(config-if)#ip address 10.234.180.25 255.255.255.0zsr-sw-01(config-if)#exitzsr-sw-01(config)#ip default.gateway 10.234.180.234zsr-sw-01(config)#endzsr-sw-01#vlan databasezsr-sw-01(vlan)#vtp domain Corp_Netzsr-sw-01(vlan)#vtp clientzsr-sw-01(vlan)#exitzsr-sw-1#configure terminalzsr-sw-1(config)#int f0/1zsr-sw-1(config-if)#switchport mode access zsr-sw-1(config-if)#switchport access vlan 31zsr-sw-1(config-if)#exitzsr-sw-1(config)#int f0/2。zsr-sw-1(config)#int f0/48zsr-sw-1(config-if)#switchport mode access zsr-sw-1(config-if)#switchport access vlan 31zsr-sw-1(config-if)#exitzsr-sw-01(config)#int g0/1zsr-sw-01(config-if)#switchport mode trunk zsr-sw-01(config-if)#switchport trunk encapsulation dot1qzsr-sw-01(config-if)#switchport trunk allowed vlan allzsr-sw-01 (config-if)#spantree cost 10zsr-sw-01(config-if)#exitzsr-sw-01(config)#int g0/2zsr-sw-01(config-if)#switchport mode trunk zsr-sw-01(config-if)#switchport trunk encapsulation dot1qzsr-sw-01(config-if)#switchport trunk allowed vlan allzsr-sw-01 (config-if)#spantree cost 20zsr-sw-01(config-if)#exitzsr-sw-01#write memory3.3 局办公楼Catalyst 3548XL交换机配置方案switch#configure terminalEnter configuration commands, one per line. End with CNTL/Z.switch(config)#hostname yy-sw-01yy-sw-01(config)#enable password testyy-sw-01(config)#enable secret testyy-sw-01(config)#banner motd % Welcome to the C3548 in the Yi Yang Fen Ju %yy-sw-01(config)#line vty 0 4yy-sw-01(config.line)#loginyy-sw-01(config.line)#password testyy-sw-01(config.line)#exityy-sw-01(config)#int vlan 1yy-sw-01(config-if)#ip address 10.234.180.26 255.255.255.0yy-sw-01(config-if)#exityy-sw-01(config)#ip default.gateway 10.234.180.234yy-sw-01(config)#endyy-sw-01#vlan databaseyy-sw-01(vlan)#vtp domain Corp_Netyy-sw-01(vlan)#vtp clientyy-sw-01(vlan)#exityy-sw-1#configure terminalyy-sw-1(config)#int f0/1yy-sw-1(config-if)#switchport mode access yy-sw-1(config-if)#switchport access vlan 32yy-sw-1(config-if)#exityy-sw-1(config)#int f0/2。yy-sw-1(config)#int f0/48yy-sw-1(config-if)#switchport mode access yy-sw-1(config-if)#switchport access vlan 32yy-sw-1(config-if)#exityy-sw-01#write memory3.4 检修设计Catalyst 3548XL交换机配置方案switch#configure terminalEnter configuration commands, one per line. End with CNTL/Z.switch(config)#hostname jxsj-sw-01jxsj-sw-01(config)#enable password testjxsj-sw-01(config)#enable secret testjxsj-sw-01(config)#banner motd % Welcome to the C3548 in the Jian Xiu She Ji Fen Ju %jxsj-sw-01(config)#line vty 0 4jxsj-sw-01(config.line)#loginjxsj-sw-01(config.line)#password testjxsj-sw-01(config.line)#exitjxsj-sw-01(config)#int vlan 1jxsj-sw-01(config-if)#ip address 10.234.180.27 255.255.255.0jxsj-sw-01(config-if)#exitjxsj-sw-01(config)#ip default.gateway 10.234.180.234jxsj-sw-01(config)#endjxsj-sw-01#vlan databasejxsj-sw-01(vlan)#vtp domain Corp_Netjxsj-sw-01(vlan)#vtp clientjxsj-sw-01(vlan)#exitjxsj-sw-1#configure terminaljxsj-sw-1(config)#int f0/1jxsj-sw-1(config-if)#switchport mode access jxsj-sw-1(config-if)#switchport access vlan 33jxsj-sw-1(config-if)#exitjxsj-sw-1(config)#int f0/2。jxsj-sw-1(config)#int f0/48jxsj-sw-1(config-if)#switchport mode access jxsj-sw-1(config-if)#switchport access vlan 33jxsj-sw-1(config-if)#exitjxsj-sw-01(config)#int g0/1jxsj-sw-01(config-if)#switchport mode trunk jxsj-sw-01(config-if)#switchport trunk encapsulation dot1qjxsj-sw-01(config-if)#switchport trunk allowed vlan alljxsj-sw-01 (config-if)#spantree cost 10jxsj-sw-01(config-if)#exitjxsj-sw-01(config)#int g0/2jxsj-sw-01(config-if)#switchport mode trunk jxsj-sw-01(config-if)#switchport trunk encapsulation dot1qjxsj-sw-01(config-if)#switchport trunk allowed vlan alljxsj-sw-01 (config-if)#spantree cost 20jxsj-sw-01(config-if)#exitjxsj-sw-01#write memory3.5 总公司Catalyst 3524XL交换机配置方案switch#configure terminalEnter configuration commands, one per line. End with CNTL/Z.switch(config)#hostname rd-sw-01rd-sw-01(config)#enable password testrd-sw-01(config)#enable secret testrd-sw-01(config)#banner motd % Welcome to the C3524 in the Rao Dian Zong Gong Si %rd-sw-01(config)#line vty 0 4rd-sw-01(config.line)#loginrd-sw-01(config.line)#password testrd-sw-01(config.line)#exitrd-sw-01(confi
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 买卖战略合作合同范例
- 施工现场安保措施考核对象
- 仓库货物入库合同范例
- 主播拟合同范例
- ppp运营合同范例
- 吕梁山护工职业能力提升体系创新研究
- 学习音乐历史背景2025年乐理考试试题及答案
- 幼儿园感知数字的试题及答案
- 外貌匹配测试题及答案
- 智能车载系统技术发展方向试题及答案
- 人工智能在教育中的语文教学应用
- 消防救援-水域救援-冰域救援技术课件
- 30万级洁净车间温湿度标准
- 质量风险与机遇分析评价表完整
- 放射免疫技术(免疫学检验课件)
- 滨江文化片区概念规划
- 烂尾楼分析完整版
- 大思政研究论文:大中小学思政课一体化的内容要求与推进措施
- 二轮复习《健康的生活》教案
- GB/T 15812-1995医用高分子软管物理性能试验方法
- 文言文专题复习 课件(共26张ppt) 中考语文一轮复习
评论
0/150
提交评论