分享
 
 
 

经典配置包括Catalyst6509 4006交换机配置方案(1)

王朝other·作者佚名  2008-05-31
窄屏简体版  字體: |||超大  

拓扑图如下:

(点击查看原图)

一、 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: test

Bg-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 int

Bg-sw-01> (enable) set ip route default 10.234.180.234 /设置默认网关 #sh ip route

Bg-sw-01> (enable) set vtp mode server /设置VTP模式 #sh vtp domain

Bg-sw-01> (enable) set vtp domain Core_Net /设置VTP域名

Bg-sw-01> (enable) set vlan 31 name ZhongSanLu /创建VLAN #sh vlan

Bg-sw-01> (enable) set vlan 32 name YiYang

Bg-sw-01> (enable) set vlan 33 name JianXiu

Bg-sw-01> (enable) set vlan 34 name RaoDian

Bg-sw-01> (enable) set vlan 35 name JinSanLou

Bg-sw-01> (enable) set vlan 36 name WuZi

Bg-sw-01> (enable) set port channel 1/1-2 on /设置Channel #sh port channel

Bg-sw-01> (enable) set trunk 1/1 on dot1q 1-1005

Bg-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-1005

Bg-sw-01> (enable) set trunk 2/4 on dot1q 1-1005

Bg-sw-01> (enable) set trunk 2/5 on dot1q 1-1005

Bg-sw-01> (enable) set trunk 2/6 on dot1q 1-1005

Bg-sw-01> (enable) set trunk 2/7 on dot1q 1-1005

Bg-sw-01> (enable) set spantree root 1-40 dia 4 /设为spantree的根#sh spantree

Bg-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 test

C6509-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)# end

C6509-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 31

C6509-msfc(config-if)# ip address 10.234.181.60 255.255.255.192

C6509-msfc(config-if)# no shutdown

C6509-msfc(config-if)# standby 31 ip 10.234.181.62

C6509-msfc(config-if)# standby 31 priority 110

C6509-msfc(config-if)# standby 31 preempt

C6509-msfc(config-if)# interfacevlan 32

C6509-msfc(config-if)# ip address 10.234.181.124 255.255.255.192

C6509-msfc(config-if)# no shutdown

C6509-msfc(config-if)# standby 32 ip 10.234.181.126

C6509-msfc(config-if)# standby 32 priority 110

C6509-msfc(config-if)# standby 32 preempt

C6509-msfc(config-if)# interface vlan 33

C6509-msfc(config-if)# ip address 10.234.181.188 255.255.255.192

C6509-msfc(config-if)# no shutdown

C6509-msfc(config-if)# standby 33 ip 10.234.181.190

C6509-msfc(config-if)# standby 33 priority 110

C6509-msfc(config-if)# standby 33 preempt

C6509-msfc(config-if)# interface vlan 34

C6509-msfc(config-if)# ip address 10.234.181.220 255.255.255.224

C6509-msfc(config-if)# no shutdown

C6509-msfc(config-if)# standby 34 ip 10.234.181.222

C6509-msfc(config-if)# standby 34 priority 110

C6509-msfc(config-if)# standby 34 preempt

C6509-msfc(config-if)# interface vlan 35

C6509-msfc(config-if)# ip address 10.234.181.254 252.255.255.224

C6509-msfc(config-if)# no shutdown

C6509-msfc(config-if)# standby 35 ip 10.234.181.254

C6509-msfc(config-if)# standby 35 priority 110

C6509-msfc(config-if)# standby 35 preempt

C6509-msfc(config-if)# interface vlan 36

C6509-msfc(config-if)# ip address 10.234.182.28 255.255.255.224

C6509-msfc(config-if)# no shutdown

C6509-msfc(config-if)# standby 36 ip 10.234.182.30

C6509-msfc(config-if)# standby 36 priority 110

C6509-msfc(config-if)# standby 36 preempt

C6509-msfc(config-if)# exit

C6509-msfc #copy running config

二、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: test

Bg-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 int

Bg-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 domain

Bg-sw-02> (enable) set vtp domain Core_Net /设置VTP域名

Bg-sw-02> (enable) set vlan 31 name ZhongSanLu /创建VLAN #sh vlan

Bg-sw-02> (enable) set vlan 32 name YiYang

Bg-sw-02> (enable) set vlan 33 name JianXiu

Bg-sw-02> (enable) set vlan 34 name RaoDian

Bg-sw-02> (enable) set vlan 35 name JinSanLou

Bg-sw-02> (enable) set vlan 36 name WuZi

Bg-sw-02> (enable) set port channel 1/1-2 on /设置Channel #sh port channel

Bg-sw-02> (enable) set trunk 1/1 on dot1q 1-1005

Bg-sw-02> (enable) set port channel 2/1-2 on /设置Channel #sh port channel

Bg-sw-02> (enable) set trunk 2/1 on dot1q 1-1005

Bg-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-1005

Bg-sw-02> (enable) set trunk 4/4 on dot1q 1-1005

Bg-sw-02> (enable) set spantree root secondary 1-40 dia 4

Bg-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 test

c4006-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)# end

C4006-L3#configure terminal

Enter 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)# exit

C4006-L3(config)# interface g4 /进入接口模式

C4006-L3(config-if)# channel-group 1 / 加入到channel组中

C4006-L3(config-if)# exit

C4006-L3(config)# interface port-channel 1.1 /进入子接口模式

C4006-L3(config-if)# encapsulation dot1q 1 native/ 封装trunk

C4006-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.31

C4006-L3(config-if)# encapsulation dot1q 31

C4006-L3(config-if)# ip address 10.234.181.61 255.255.255.192

C4006-L3(config-if)# no shutdown

C4006-L3(config-if)# standby 31 ip 10.234.181.62

C4006-L3(config-if)# standby 31 priority 100

C4006-L3(config-if)# standby 31 preempt

C4006-L3(config-if)# interface port-channel 1.32

C4006-L3(config-if)# encapsulation dot1q 32

C4006-L3(config-if)# ip address 10.234.181.125 255.255.255.192

C4006-L3(config-if)# no shutdown

C4006-L3(config-if)# standby 32 ip 10.234.181.126

C4006-L3(config-if)# standby 32 priority 100

C4006-L3(config-if)# standby 32 preempt

C4006-L3(config-if)# interface port-channel 1.33

C4006-L3(config-if)# encapsulation dot1q 33

C4006-L3(config-if)# ip address 10.234.181.189 255.255.255.192

C4006-L3(config-if)# no shutdown

C4006-L3(config-if)# standby 33 ip 10.234.181.190

C4006-L3(config-if)# standby 33 priority 100

C4006-L3(config-if)# standby 33 preempt

C4006-L3(config-if)# interface port-channel 1.34

C4006-L3(config-if)# encapsulation dot1q 34

C4006-L3(config-if)# ip address 10.234.181.221 255.255.255.224

C4006-L3(config-if)# no shutdown

C4006-L3(config-if)# standby 34 ip 10.234.181.222

C4006-L3(config-if)# standby 34 priority 100

C4006-L3(config-if)# standby 34 preempt

C4006-L3(config-if)# interface port-channel 1.35

C4006-L3(config-if)# encapsulation dot1q 35

C4006-L3(config-if)# ip address 10.234.181.253 255.255.255.224

C4006-L3(config-if)# no shutdown

C4006-L3(config-if)# standby 35 ip 10.234.181.254

C4006-L3(config-if)# standby 35 priority 100

C4006-L3(config-if)# standby 35 preempt

C4006-L3(config-if)# interface port-channel 1.36

C4006-L3(config-if)# encapsulation dot1q 36

C4006-L3(config-if)# ip address 10.234.182.29 255.255.255.224

C4006-L3(config-if)# no shutdown

C4006-L3(config-if)# standby 36 ip 10.234.182.30

C4006-L3(config-if)# standby 36 priority 100

C4006-L3(config-if)# standby 36 preempt

C4006-L3(config-if)# exit

C4006-L3#copy running config

三、Catalyst 3500XL交换机配置方案

3.1、办公楼Catalyst 3500XL交换机配置方案

第一台Catalyst 3548

switch#configure terminal

Enter 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 test

bg-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)#exit

bg-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许可vlan

bg-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许可vlan

bg-sw-03(config-if)#spanning-tree portfast /设定端口快速启用

bg-sw-03(config-if)#exit

bg-sw-03#write memory

第二台Catalyst 3548

switch#configure terminal

Enter 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 test

bg-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 1

bg-sw-04(config-if)#ip address 10.234.180.24 255.255.255.0

bg-sw-04(config-if)#exit

bg-sw-04(config)#ip default.gateway 10.234.180.234

bg-sw-04(config)#end

bg-sw-04#vlan database

bg-sw-04(vlan)#vtp domain Corp_Net

bg-sw-04(vlan)#vtp client

bg-sw-04(vlan)#exit

bg-sw-04(config)#spantree uplinkfast

bg-sw-04(config)#int g0/1

bg-sw-04(config-if)#switchport mode trunk

bg-sw-04(config-if)#switchport trunk encapsulation dot1q

bg-sw-04(config-if)#switchport trunk allowed vlan all

bd-sw-03 (config-if)# spanning-tree portfast

bg-sw-04(config-if)#exit

bg-sw-04(config)#int g0/2

bg-sw-04(config-if)#switchport mode trunk

bg-sw-04(config-if)#switchport trunk encapsulation dot1q

bg-sw-04(config-if)#switchport trunk allowed vlan all

bg-sw-04(config-if)#spanning-tree portfast

bg-sw-04(config-if)#exit

bg-sw-04#write memory

更多的请看:http://www.QQread.com/windows/2003/index.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: test

Bg-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 int

Bg-sw-01> (enable) set ip route default 10.234.180.234 /设置默认网关 #sh ip route

Bg-sw-01> (enable) set vtp mode server /设置VTP模式 #sh vtp domain

Bg-sw-01> (enable) set vtp domain Core_Net /设置VTP域名

Bg-sw-01> (enable) set vlan 31 name ZhongSanLu /创建VLAN #sh vlan

Bg-sw-01> (enable) set vlan 32 name YiYang

Bg-sw-01> (enable) set vlan 33 name JianXiu

Bg-sw-01> (enable) set vlan 34 name RaoDian

Bg-sw-01> (enable) set vlan 35 name JinSanLou

Bg-sw-01> (enable) set vlan 36 name WuZi

Bg-sw-01> (enable) set port channel 1/1-2 on /设置Channel #sh port channel

Bg-sw-01> (enable) set trunk 1/1 on dot1q 1-1005

Bg-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-1005

Bg-sw-01> (enable) set trunk 2/4 on dot1q 1-1005

Bg-sw-01> (enable) set trunk 2/5 on dot1q 1-1005

Bg-sw-01> (enable) set trunk 2/6 on dot1q 1-1005

Bg-sw-01> (enable) set trunk 2/7 on dot1q 1-1005

Bg-sw-01> (enable) set spantree root 1-40 dia 4 /设为spantree的根#sh spantree

Bg-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 test

C6509-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)# end

C6509-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 31

C6509-msfc(config-if)# ip address 10.234.181.60 255.255.255.192

C6509-msfc(config-if)# no shutdown

C6509-msfc(config-if)# standby 31 ip 10.234.181.62

C6509-msfc(config-if)# standby 31 priority 110

C6509-msfc(config-if)# standby 31 preempt

C6509-msfc(config-if)# interfacevlan 32

C6509-msfc(config-if)# ip address 10.234.181.124 255.255.255.192

C6509-msfc(config-if)# no shutdown

C6509-msfc(config-if)# standby 32 ip 10.234.181.126

C6509-msfc(config-if)# standby 32 priority 110

C6509-msfc(config-if)# standby 32 preempt

C6509-msfc(config-if)# interface vlan 33

C6509-msfc(config-if)# ip address 10.234.181.188 255.255.255.192

C6509-msfc(config-if)# no shutdown

C6509-msfc(config-if)# standby 33 ip 10.234.181.190

C6509-msfc(config-if)# standby 33 priority 110

C6509-msfc(config-if)# standby 33 preempt

C6509-msfc(config-if)# interface vlan 34

C6509-msfc(config-if)# ip address 10.234.181.220 255.255.255.224

C6509-msfc(config-if)# no shutdown

C6509-msfc(config-if)# standby 34 ip 10.234.181.222

C6509-msfc(config-if)# standby 34 priority 110

C6509-msfc(config-if)# standby 34 preempt

C6509-msfc(config-if)# interface vlan 35

C6509-msfc(config-if)# ip address 10.234.181.254 252.255.255.224

C6509-msfc(config-if)# no shutdown

C6509-msfc(config-if)# standby 35 ip 10.234.181.254

C6509-msfc(config-if)# standby 35 priority 110

C6509-msfc(config-if)# standby 35 preempt

C6509-msfc(config-if)# interface vlan 36

C6509-msfc(config-if)# ip address 10.234.182.28 255.255.255.224

C6509-msfc(config-if)# no shutdown

C6509-msfc(config-if)# standby 36 ip 10.234.182.30

C6509-msfc(config-if)# standby 36 priority 110

C6509-msfc(config-if)# standby 36 preempt

C6509-msfc(config-if)# exit

C6509-msfc #copy running config

二、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: test

Bg-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 int

Bg-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 domain

Bg-sw-02> (enable) set vtp domain Core_Net /设置VTP域名

Bg-sw-02> (enable) set vlan 31 name ZhongSanLu /创建VLAN #sh vlan

Bg-sw-02> (enable) set vlan 32 name YiYang

Bg-sw-02> (enable) set vlan 33 name JianXiu

Bg-sw-02> (enable) set vlan 34 name RaoDian

Bg-sw-02> (enable) set vlan 35 name JinSanLou

Bg-sw-02> (enable) set vlan 36 name WuZi

Bg-sw-02> (enable) set port channel 1/1-2 on /设置Channel #sh port channel

Bg-sw-02> (enable) set trunk 1/1 on dot1q 1-1005

Bg-sw-02> (enable) set port channel 2/1-2 on /设置Channel #sh port channel

Bg-sw-02> (enable) set trunk 2/1 on dot1q 1-1005

Bg-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-1005

Bg-sw-02> (enable) set trunk 4/4 on dot1q 1-1005

Bg-sw-02> (enable) set spantree root secondary 1-40 dia 4

Bg-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 test

c4006-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)# end

C4006-L3#configure terminal

Enter 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)# exit

C4006-L3(config)# interface g4 /进入接口模式

C4006-L3(config-if)# channel-group 1 / 加入到channel组中

C4006-L3(config-if)# exit

C4006-L3(config)# interface port-channel 1.1 /进入子接口模式

C4006-L3(config-if)# encapsulation dot1q 1 native/ 封装trunk

C4006-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.31

C4006-L3(config-if)# encapsulation dot1q 31

C4006-L3(config-if)# ip address 10.234.181.61 255.255.255.192

C4006-L3(config-if)# no shutdown

C4006-L3(config-if)# standby 31 ip 10.234.181.62

C4006-L3(config-if)# standby 31 priority 100

C4006-L3(config-if)# standby 31 preempt

C4006-L3(config-if)# interface port-channel 1.32

C4006-L3(config-if)# encapsulation dot1q 32

C4006-L3(config-if)# ip address 10.234.181.125 255.255.255.192

C4006-L3(config-if)# no shutdown

C4006-L3(config-if)# standby 32 ip 10.234.181.126

C4006-L3(config-if)# standby 32 priority 100

C4006-L3(config-if)# standby 32 preempt

C4006-L3(config-if)# interface port-channel 1.33

C4006-L3(config-if)# encapsulation dot1q 33

C4006-L3(config-if)# ip address 10.234.181.189 255.255.255.192

C4006-L3(config-if)# no shutdown

C4006-L3(config-if)# standby 33 ip 10.234.181.190

C4006-L3(config-if)# standby 33 priority 100

C4006-L3(config-if)# standby 33 preempt

C4006-L3(config-if)# interface port-channel 1.34

C4006-L3(config-if)# encapsulation dot1q 34

C4006-L3(config-if)# ip address 10.234.181.221 255.255.255.224

C4006-L3(config-if)# no shutdown

C4006-L3(config-if)# standby 34 ip 10.234.181.222

C4006-L3(config-if)# standby 34 priority 100

C4006-L3(config-if)# standby 34 preempt

C4006-L3(config-if)# interface port-channel 1.35

C4006-L3(config-if)# encapsulation dot1q 35

C4006-L3(config-if)# ip address 10.234.181.253 255.255.255.224

C4006-L3(config-if)# no shutdown

C4006-L3(config-if)# standby 35 ip 10.234.181.254

C4006-L3(config-if)# standby 35 priority 100

C4006-L3(config-if)# standby 35 preempt

C4006-L3(config-if)# interface port-channel 1.36

C4006-L3(config-if)# encapsulation dot1q 36

C4006-L3(config-if)# ip address 10.234.182.29 255.255.255.224

C4006-L3(config-if)# no shutdown

C4006-L3(config-if)# standby 36 ip 10.234.182.30

C4006-L3(config-if)# standby 36 priority 100

C4006-L3(config-if)# standby 36 preempt

C4006-L3(config-if)# exit

C4006-L3#copy running config

三、Catalyst 3500XL交换机配置方案

3.1、办公楼Catalyst 3500XL交换机配置方案

第一台Catalyst 3548

switch#configure terminal

Enter 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 test

bg-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)#exit

bg-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许可vlan

bg-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许可vlan

bg-sw-03(config-if)#spanning-tree portfast /设定端口快速启用

bg-sw-03(config-if)#exit

bg-sw-03#write memory

第二台Catalyst 3548

switch#configure terminal

Enter 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 test

bg-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 1

bg-sw-04(config-if)#ip address 10.234.180.24 255.255.255.0

bg-sw-04(config-if)#exit

bg-sw-04(config)#ip default.gateway 10.234.180.234

bg-sw-04(config)#end

bg-sw-04#vlan database

bg-sw-04(vlan)#vtp domain Corp_Net

bg-sw-04(vlan)#vtp client

bg-sw-04(vlan)#exit

bg-sw-04(config)#spantree uplinkfast

bg-sw-04(config)#int g0/1

bg-sw-04(config-if)#switchport mode trunk

bg-sw-04(config-if)#switchport trunk encapsulation dot1q

bg-sw-04(config-if)#switchport trunk allowed vlan all

bd-sw-03 (config-if)# spanning-tree portfast

bg-sw-04(config-if)#exit

bg-sw-04(config)#int g0/2

bg-sw-04(config-if)#switchport mode trunk

bg-sw-04(config-if)#switchport trunk encapsulation dot1q

bg-sw-04(config-if)#switchport trunk allowed vlan all

bg-sw-04(config-if)#spanning-tree portfast

bg-sw-04(config-if)#exit

bg-sw-04#write memory

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有