正文

经典配置Catalyst6509交换机配置方案2006-11-09 01:27:00

【评论】 【打印】 【字体: 】 本文链接:http://blog.pfan.cn/lizoulee/20098.html

分享到:

一、 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-1005                             Bg-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 uplinkfast enable /设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 config   Console> (enable) set system name bg-sw-02 /设备名称Bg-sw-02> (enable) set passwordEnter old password:Enter new password: test       /设备口令Retype new password: test Bg-sw-02> (enable) set enablepassEnter 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 route Bg-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 WuZi  Bg-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 uplinkfast enable /设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 config 三、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)#exit bg-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)#end bg-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)#exit bg-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)#exit bg-sw-03#write memory 第二台Catalyst 3548 switch#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)#end bg-sw-04#vlan databasebg-sw-04(vlan)#vtp domain Corp_Netbg-sw-04(vlan)#vtp clientbg-sw-04(vlan)#exit bg-sw-04(config)#spantree uplinkfast bg-sw-04(config)#int g0/1bg-sw-04(config-if)#switchport mode trunkbg-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)#exit bg-sw-04(config)#int g0/2bg-sw-04(config-if)#switchport mode trunkbg-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)#exit bg-sw-04#write memory 3.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)#exit zsr-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)#end zsr-sw-01#vlan databasezsr-sw-01(vlan)#vtp domain Corp_Netzsr-sw-01(vlan)#vtp clientzsr-sw-01(vlan)#exit zsr-sw-1#configure terminal zsr-sw-1(config)#int f0/1zsr-sw-1(config-if)#switchport mode accesszsr-sw-1(config-if)#switchport access vlan 31zsr-sw-1(config-if)#exit zsr-sw-1(config)#int f0/2。。。。。。zsr-sw-1(config)#int f0/48zsr-sw-1(config-if)#switchport mode accesszsr-sw-1(config-if)#switchport access vlan 31zsr-sw-1(config-if)#exit zsr-sw-01(config)#int g0/1zsr-sw-01(config-if)#switchport mode trunkzsr-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)#exit zsr-sw-01(config)#int g0/2zsr-sw-01(config-if)#switchport mode trunkzsr-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)#exit zsr-sw-01#write memory 3.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)#exit yy-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)#end yy-sw-01#vlan databaseyy-sw-01(vlan)#vtp domain Corp_Netyy-sw-01(vlan)#vtp clientyy-sw-01(vlan)#exit yy-sw-1#configure terminal yy-sw-1(config)#int f0/1yy-sw-1(config-if)#switchport mode accessyy-sw-1(config-if)#switchport access vlan 32yy-sw-1(config-if)#exit yy-sw-1(config)#int f0/2。。。。。。yy-sw-1(config)#int f0/48yy-sw-1(config-if)#switchport mode accessyy-sw-1(config-if)#switchport access vlan 32yy-sw-1(config-if)#exit yy-sw-01#write memory 3.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)#exit jxsj-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)#end jxsj-sw-01#vlan databasejxsj-sw-01(vlan)#vtp domain Corp_Netjxsj-sw-01(vlan)#vtp clientjxsj-sw-01(vlan)#exit jxsj-sw-1#configure terminal jxsj-sw-1(config)#int f0/1jxsj-sw-1(config-if)#switchport mode accessjxsj-sw-1(config-if)#switchport access vlan 33jxsj-sw-1(config-if)#exit jxsj-sw-1(config)#int f0/2。。。。。。jxsj-sw-1(config)#int f0/48jxsj-sw-1(config-if)#switchport mode accessjxsj-sw-1(config-if)#switchport access vlan 33jxsj-sw-1(config-if)#exit jxsj-sw-01(config)#int g0/1jxsj-sw-01(config-if)#switchport mode trunkjxsj-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)#exit jxsj-sw-01(config)#int g0/2jxsj-sw-01(config-if)#switchport mode trunkjxsj-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)#exit jxsj-sw-01#write memory 3.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)#exit rd-sw-01(config)#int vlan 1rd-sw-01(config-if)#ip address 10.234.180.28 255.255.255.0rd-sw-01(config-if)#exitrd-sw-01(config)#ip default gateway 10.234.180.234rd-sw-01(config)#end rd-sw-01#vlan databaserd-sw-01(vlan)#vtp domain Corp_Netrd-sw-01(vlan)#vtp clientrd-sw-01(vlan)#exit rd-sw-01#configure terminal rd-sw-01(config)#int f0/1rd-sw-01(config-if)#switchport mode accessrd-sw-01(config-if)#switchport access vlan 34rd-sw-01(config-if)#exit rd-sw-01(config)#int f0/2。。。。。。rd-sw-01(config)#int f0/24rd-sw-01(config-if)#switchport mode accessrd-sw-01(config-if)#switchport access vlan 34rd-sw-01(config-if)#exit rd-sw-01(config)#int g0/1rd-sw-01(config-if)#switchport mode trunkrd-sw-01(config-if)#switchport trunk encapsulation dot1qrd-sw-01(config-if)#switchport trunk allowed vlan allrd-sw-01(config-if)#exit rd-sw-01#write memory 3.6 山楼Catalyst 3524XL交换机配置方案 switch#configure terminalEnter configuration commands, one per line. End with CNTL/Z.switch(config)#hostname jsl-sw-01jsl-sw-01(config)#enable password testjsl-sw-01(config)#enable secret testjsl-sw-01(config)#banner motd % Welcome to the C3524 in the Jin San Lou %jsl-sw-01(config)#line vty 0 4jsl-sw-01(config.line)#loginjsl-sw-01(config.line)#password testjsl-sw-01(config.line)#exit jsl-sw-01(config)#int vlan 1jsl-sw-01(config-if)#ip address 10.234.180.29 255.255.255.0jsl-sw-01(config-if)#exitjsl-sw-01(config)#ip default.gateway 10.234.180.234jsl-sw-01(config)#end jsl-sw-01#vlan databasejsl-sw-01(vlan)#vtp domain Corp_Netjsl-sw-01(vlan)#vtp clientjsl-sw-01(vlan)#exit jsl-sw-1#configure terminal jsl-sw-1(config)#int f0/1jsl-sw-1(config-if)#switchport mode accessjsl-sw-1(config-if)#switchport access vlan 35jsl-sw-1(config-if)#exit jsl-sw-1(config)#int f0/2。。。。。。jsl-sw-1(config)#int f0/24jsl-sw-1(config-if)#switchport mode accessjsl-sw-1(config-if)#switchport access vlan 35jsl-sw-1(config-if)#exit jsl-sw-01(config)#int g0/1jsl-sw-01(config-if)#switchport mode trunkjsl-sw-01(config-if)#switchport trunk encapsulation dot1qjsl-sw-01(config-if)#switchport trunk allowed vlan alljsl-sw-01(config-if)#exit jsl-sw-01#write memory 3.7 公司Catalyst 3524XL交换机配置方案 switch#configure terminalEnter configuration commands, one per line. End with CNTL/Z.switch(config)#hostname wz-sw-01wz-sw-01(config)#enable password testwz-sw-01(config)#enable secret testwz-sw-01(config)#banner motd % Welcome to the C3524 in the Wu Zi Gong Si %wz-sw-01(config)#line vty 0 4wz-sw-01(config.line)#loginwz-sw-01(config.line)#password testwz-sw-01(config.line)#exit wz-sw-01(config)#int vlan 1wz-sw-01(config-if)#ip address 10.234.180.30 255.255.255.0wz-sw-01(config-if)#exitwz-sw-01(config)#ip default.gateway 10.234.180.234wz-sw-01(config)#end wz-sw-01#vlan databasewz-sw-01(vlan)#vtp domain Corp_Netwz-sw-01(vlan)#vtp clientwz-sw-01(vlan)#exit wz-sw-1#configure terminal wz-sw-1(config)#int f0/1wz-sw-1(config-if)#switchport mode accesswz-sw-1(config-if)#switchport access vlan 36wz-sw-1(config-if)#exit wz-sw-1(config)#int f0/2。。。。。。wz-sw-1(config)#int f0/24wz-sw-1(config-if)#switchport mode accesswz-sw-1(config-if)#switchport access vlan 36wz-sw-1(config-if)#exit wz-sw-01(config)#int g0/1wz-sw-01(config-if)#switchport mode trunkwz-sw-01(config-if)#switchport trunk encapsulation dot1qwz-sw-01(config-if)#switchport trunk allowed vlan allwz-sw-01(config-if)#exit

阅读(1279) | 评论(0)


版权声明:编程爱好者网站为此博客服务提供商,如本文牵涉到版权问题,编程爱好者网站不承担相关责任,如有版权问题请直接与本文作者联系解决。谢谢!

评论

暂无评论
您需要登录后才能评论,请 登录 或者 注册