主题 : Cisco6500,4500,3500交换机部分配置命令
级别: 二分秋色
UID: 1323
精华: 0
发帖: 72
威望: 360 点
无痕币: 4319 WHB
贡献值: 0 点
在线时间: 21(时)
注册时间: 2007-11-27
最后登录: 2018-05-16

0 Cisco6500,4500,3500交换机部分配置命令

Catalyst 6509交换机配置方案
1.1配置6509二层交换
Console> (enable) set system name Center-01 /设备名称
Center-01> (enable) set password
Enter old password: <old_password>
Enter new password: <new_password> test /设备口令
Retype new password: <new_password> test
Center-01> (enable) set enablepass
Enter old password: <old_enablepass>
Enter new password: <new_ enablepass> test /设备口令
Retype new password: <new_ enablepass> test
Center-01>(enable)set banner motd % Welcome to the c6509 in the office%
Center-01>(enable)set interface sc0 10.234.180.21 255.255.255.0/设置管理接口        Center-01>(enable)set ip route default 10.234.180.234/设置默认网关
Center-01>(enable) set vtp mode server /设置VTP模式 #sh vtp domain
Center-01>(enable) set vtp domain Core_Net  /设置VTP域名
Center-01>(enable) set vlan 21 name Office /创建VLAN
Center-01>(enable) set vlan 22 name Teaching
Center-01>(enable) set vlan 31 name StudentHome
Center-01>(enable) set vlan 41 name TeacherHome
Center-01>(enable) set vlan 11 name NetworkCenter
Center-01>(enable) set port channel 1/1-2 on /设置Channel #sh port channel
Center-01>(enable) set trunk 1/1 on dot1q 1-1005
Center-01>(enable) set trunk 2/2 on dot1q 1-1005 /设置trunk口 #sh trunk
Center-01>(enable) set trunk 2/3 on dot1q 1-1005
Center-01>(enable) set trunk 2/4 on dot1q 1-1005
Center-01>(enable) set trunk 2/5 on dot1q 1-1005
Center-01>(enable) set trunk 2/6 on dot1q 1-1005
Center-01>(enable)set spantree root 1-40 dia 4 /设为spantree的根#sh spantree
Center-01>(enable)set spantree portfast 1/1-2 enable/设spantree端口快速启用       Center-01>(enable) set spantree portfast 2/1-8 enable
Center-01>(enable)set spantree uplinkfast enable /设spantree端口快速切换
Center-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 11
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 11 ip 10.234.181.62
C6509-msfc(config-if)# standby 11 priority 110
C6509-msfc(config-if)# standby 11 preempt
C6509-msfc(config-if)# interface vlan 21
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 21 ip 10.234.181.126
C6509-msfc(config-if)# standby 21 priority 110
C6509-msfc(config-if)# standby 21 preempt
C6509-msfc(config-if)# interface vlan 22
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 22 ip 10.234.181.190
C6509-msfc(config-if)# standby 22 priority 110
C6509-msfc(config-if)# standby 22 preempt
C6509-msfc(config-if)# interface vlan 31
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 31 ip 10.234.181.222
C6509-msfc(config-if)# standby 31 priority 110
C6509-msfc(config-if)# standby 31 preempt
C6509-msfc(config-if)# interface vlan 41
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 41 ip 10.234.181.254
C6509-msfc(config-if)# standby 41 priority 110
C6509-msfc(config-if)# standby 41 preempt
C6509-msfc(config-if)# exit
C6509-msfc #copy running config
[ 此帖被都市小星星在2009-02-21 20:33重新编辑 ]
Total 0.046801(s) query 3, Time now is:04-20 04:49, Gzip enabled 粤ICP备07514325号-1
Powered by PHPWind v7.3.2 Certificate Code © 2003-13 秋无痕论坛