cisco 6509配置手册26459.docx
《cisco 6509配置手册26459.docx》由会员分享,可在线阅读,更多相关《cisco 6509配置手册26459.docx(20页珍藏版)》请在冰豆网上搜索。
cisco6509配置手册26459
cisco6509交换机配置手册
一个经典配置包括Catalyst65094006交换机配置方案
拓扑图如下:
一、Catalyst6509交换机配置方案
1.1、配置6509二层交换
Console>(enable)setsystemnamebg-sw-01/设备名称
Bg-sw-01>(enable)setpassword
Enteroldpassword:
Enternewpassword:
test /设备口令
Retypenewpassword:
test
Bg-sw-01>(enable)setenablepass
Enteroldpassword:
Enternewpassword:
test /设备口令
Retypenewpassword:
test
Bg-sw-01>(enable)setbannermotd%Welcometothec6509intheoffice% /提示文本
Bg-sw-01>(enable)setinterfacesc010.234.180.21255.255.255.0 /设置管理接口#shint
Bg-sw-01>(enable)setiproutedefault10.234.180.234 /设置默认网关#shiproute
Bg-sw-01>(enable)setvtpmodeserver /设置VTP模式#shvtpdomain
Bg-sw-01>(enable)setvtpdomainCore_Net /设置VTP域名
Bg-sw-01>(enable)setvlan31nameZhongSanLu /创建VLAN#shvlan
Bg-sw-01>(enable)setvlan32nameYiYang
Bg-sw-01>(enable)setvlan33nameJianXiu
Bg-sw-01>(enable)setvlan34nameRaoDian
Bg-sw-01>(enable)setvlan35nameJinSanLou
Bg-sw-01>(enable)setvlan36nameWuZi
Bg-sw-01>(enable)setportchannel1/1-2on /设置Channel#shportchannel
Bg-sw-01>(enable)settrunk1/1ondot1q1-1005
Bg-sw-01>(enable)settrunk2/2ondot1q1-1005/设置trunk口#shtrunk#
Bg-sw-01>(enable)settrunk2/3ondot1q1-1005
Bg-sw-01>(enable)settrunk2/4ondot1q1-1005
Bg-sw-01>(enable)settrunk2/5ondot1q1-1005
Bg-sw-01>(enable)settrunk2/6ondot1q1-1005
Bg-sw-01>(enable)settrunk2/7ondot1q1-1005
Bg-sw-01>(enable)setspantreeroot1-40dia4/设为spantree的根 #shspantree
Bg-sw-01>(enable)setspantreeportfast1/1-2enable/设spantree端口快速启用
Bg-sw-01>(enable)setspantreeportfast2/1-8enable
Bg-sw-01>(enable)setspantreeuplinkfast enable/设spantree端口快速切换
Bg-sw-01>(enable)setspantreebackbonefastenable/设spantree端口快速定位根
1.2、配置路由
Console>(enable)session15 /进入路由子卡
Router(config)#hostnamec6509-msfc/设备名
c6509-msfc(config)#enablepasswordtest /设口令
c6509-msfc(config)#enablesecrettest
C6509-msfc(config)#bannermotd%Welcometothec6509-msfcintheOffice% /设提示文本
c6509-msfc(config)#linevty04/进入VTY模式
c6509-msfc(config-line)#login /登入提示
c6509-msfc(config-line)#passwordtest /设用户级口令
c6509-msfc(config-line)#end
C6509-msfc#configureterminal/进入全局模式
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
C6509-msfc(config)#interfacevlan1 /进入虚子接口
C6509-msfc(config-if)#ipaddress10.234.180.232255.255.255.0/加ip地址
C6509-msfc(config-if)#noshutdown /开启端口
C6509-msfc(config-if)#standby1ip10.234.180.234 /建HSRP组并设虚IP地址
C6509-msfc(config-if)#standby1priority110 /设优先级
C6509-msfc(config-if)#standby1preempt /设切换许可
C6509-msfc(config-if)#interfacevlan31
C6509-msfc(config-if)#ipaddress10.234.181.60255.255.255.192
C6509-msfc(config-if)#noshutdown
C6509-msfc(config-if)#standby31ip10.234.181.62
C6509-msfc(config-if)#standby31priority110
C6509-msfc(config-if)#standby31preempt
C6509-msfc(config-if)#interfacevlan32
C6509-msfc(config-if)#ipaddress10.234.181.124255.255.255.192
C6509-msfc(config-if)#noshutdown
C6509-msfc(config-if)#standby32ip10.234.181.126
C6509-msfc(config-if)#standby32priority110
C6509-msfc(config-if)#standby32preempt
C6509-msfc(config-if)#interfacevlan33
C6509-msfc(config-if)#ipaddress10.234.181.188255.255.255.192
C6509-msfc(config-if)#noshutdown
C6509-msfc(config-if)#standby33ip10.234.181.190
C6509-msfc(config-if)#standby33priority110
C6509-msfc(config-if)#standby33preempt
C6509-msfc(config-if)#interfacevlan34
C6509-msfc(config-if)#ipaddress10.234.181.220255.255.255.224
C6509-msfc(config-if)#noshutdown
C6509-msfc(config-if)#standby34ip10.234.181.222
C6509-msfc(config-if)#standby34priority110
C6509-msfc(config-if)#standby34preempt
C6509-msfc(config-if)#interfacevlan35
C6509-msfc(config-if)#ipaddress10.234.181.254252.255.255.224
C6509-msfc(config-if)#noshutdown
C6509-msfc(config-if)#standby35ip10.234.181.254
C6509-msfc(config-if)#standby35priority110
C6509-msfc(config-if)#standby35preempt
C6509-msfc(config-if)#interfacevlan36
C6509-msfc(config-if)#ipaddress10.234.182.28255.255.255.224
C6509-msfc(config-if)#noshutdown
C6509-msfc(config-if)#standby36ip10.234.182.30
C6509-msfc(config-if)#standby36priority110
C6509-msfc(config-if)#standby36preempt
C6509-msfc(config-if)#exit
C6509-msfc#copyrunningconfig
[page]
二、Catalyst4006交换机配置方案
2.1、配置4006二层交换(三层交换模块安置在第二个槽)
Console>(enable)setsystemnamebg-sw-02/设备名称
Bg-sw-02>(enable)setpassword
Enteroldpassword:
Enternewpassword:
test /设备口令
Retypenewpassword:
test
Bg-sw-02>(enable)setenablepass
Enteroldpassword:
Enternewpassword:
test /设备口令
Retypenewpassword:
test
Bg-sw-02>(enable)setbannermotd%Welcometothec4006intheoffice%/提示文本
Bg-sw-02>(enable)setinterfacesc010.234.180.22255.255.255.0/设置管理接口#shint
Bg-sw-02>(enable)setiproutedefault10.234.180.234/设置默认网关#shiproute
Bg-sw-02>(enable)setvtpmodeserver/设置VTP模式#shvtpdomain
Bg-sw-02>(enable)setvtpdomainCore_Net/设置VTP域名
Bg-sw-02>(enable)setvlan31nameZhongSanLu/创建VLAN#shvlan
Bg-sw-02>(enable)setvlan32nameYiYang
Bg-sw-02>(enable)setvlan33nameJianXiu
Bg-sw-02>(enable)setvlan34nameRaoDian
Bg-sw-02>(enable)setvlan35nameJinSanLou
Bg-sw-02>(enable)setvlan36nameWuZi
Bg-sw-02>(enable)setportchannel1/1-2on/设置Channel#shportchannel
Bg-sw-02>(enable)settrunk1/1ondot1q1-1005
Bg-sw-02>(enable)setportchannel2/1-2on/设置Channel#shportchannel
Bg-sw-02>(enable)settrunk2/1ondot1q1-1005
Bg-sw-02>(enable)settrunk4/1ondot1q1-1005/设置trunk口#shtrunk#
Bg-sw-02>(enable)settrunk4/3ondot1q1-1005
Bg-sw-02>(enable)settrunk4/4ondot1q1-1005
Bg-sw-02>(enable)setspantreerootsecondary1-40dia4
Bg-sw-02>(enable)setspantreeportfast1/1-2enable/设spantree端口快速启用
Bg-sw-02>(enable)setspantreeportfast2/1-34enable
Bg-sw-02>(enable)setspantreeportfast3/1-32enable
Bg-sw-02>(enable)setspantreeportfast4/1-6enable
Bg-sw-02>(enable)setspantreeuplinkfast enable/设spantree端口快速切换
Bg-sw-02>(enable)setspantreebackbonefastenable/设spantree端口快速定位根
2.1、配置三层交换模块(三层交换模块安置在第二)
Console>(enable)session2/进入路由子卡
Router(config)#hostnamec4006-L3/设备名
c4006-L3(config)#enablepasswordtest /设口令
c4006-L3(config)#enablesecrettest
c4006-L3(config)#bannermotd%Welcometothec4006-l3intheOffice%/设提示文本
c4006-L3(config)#linevty04/进入VTY模式
c4006-L3(config-line)#login /登入提示
c4006-L3(config-line)#passwordtest /设用户级口令
c4006-L3(config-line)#end
C4006-L3#configureterminal
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
C4006-L3(config)#interfaceport-channel1/建内部虚端口
C4006-L3(config)#interfaceg3 /进入接口模式
C4006-L3(config-if)#channel-group1 /加入到channel组中
C4006-L3(config-if)#exit
C4006-L3(config)#interfaceg4 /进入接口模式
C4006-L3(config-if)#channel-group1/加入到channel组中
C4006-L3(config-if)#exit
C4006-L3(config)#interfaceport-channel1.1/进入子接口模式
C4006-L3(config-if)#encapsulationdot1q1native /封装trunk
C4006-L3(config-if)#ipaddress10.234.180.233255.255.255.0 /加ip地址
C4006-L3(config-if)#noshutdown /开启端口
C4006-L3(config-if)#standby1ip10.234.180.234/建HSRP组并设虚IP地址
C4006-L3(config-if)#standby1priority100/设优先级
C4006-L3(config-if)#standby1preempt/设切换许可
C4006-L3(config-if)#interfaceport-channel1.31
C4006-L3(config-if)#encapsulationdot1q31
C4006-L3(config-if)#ipaddress10.234.181.61255.255.255.192
C4006-L3(config-if)#noshutdown
C4006-L3(config-if)#standby31ip10.234.181.62
C4006-L3(config-if)#standby31priority100
C4006-L3(config-if)#standby31preempt
C4006-L3(config-if)#interfaceport-channel1.32
C4006-L3(config-if)#encapsulationdot1q32
C4006-L3(config-if)#ipaddress10.234.181.125255.255.255.192
C4006-L3(config-if)#noshutdown
C4006-L3(config-if)#standby32ip10.234.181.126
C4006-L3(config-if)#standby32priority100
C4006-L3(config-if)#standby32preempt
C4006-L3(config-if)#interfaceport-channel1.33
C4006-L3(config-if)#encapsulationdot1q33
C4006-L3(config-if)#ipaddress10.234.181.189255.255.255.192
C4006-L3(config-if)#noshutdown
C4006-L3(config-if)#standby33ip10.234.181.190
C4006-L3(config-if)#standby33priority100
C4006-L3(config-if)#standby33preempt
C4006-L3(config-if)#interfaceport-channel1.34
C4006-L3(config-if)#encapsulationdot1q34
C4006-L3(config-if)#ipaddress10.234.181.221255.255.255.224
C4006-L3(config-if)#noshutdown
C4006-L3(config-if)#standby34ip10.234.181.222
C4006-L3(config-if)#standby34priority100
C4006-L3(config-if)#standby34preempt
C4006-L3(config-if)#interfaceport-channel1.35
C4006-L3(config-if)#encapsulationdot1q35
C4006-L3(config-if)#ipaddress10.234.181.253255.255.255.224
C4006-L3(config-if)#noshutdown
C4006-L3(config-if)#standby35ip10.234.181.254
C4006-L3(config-if)#standby35priority100
C4006-L3(config-if)#standby35preempt
C4006-L3(config-if)#interfaceport-channel1.36
C4006-L3(config-if)#encapsulationdot1q36
C4006-L3(config-if)#ipaddress10.234.182.29255.255.255.224
C4006-L3(config-if)#noshutdown
C4006-L3(config-if)#standby36ip10.234.182.30
C4006-L3(config-if)#standby36priority100
C4006-L3(config-if)#standby36preempt
C4006-L3(config-if)#