cisco6509配置手册.docx

上传人:b****5 文档编号:7606434 上传时间:2023-01-25 格式:DOCX 页数:29 大小:18.54KB
下载 相关 举报
cisco6509配置手册.docx_第1页
第1页 / 共29页
cisco6509配置手册.docx_第2页
第2页 / 共29页
cisco6509配置手册.docx_第3页
第3页 / 共29页
cisco6509配置手册.docx_第4页
第4页 / 共29页
cisco6509配置手册.docx_第5页
第5页 / 共29页
点击查看更多>>
下载资源
资源描述

cisco6509配置手册.docx

《cisco6509配置手册.docx》由会员分享,可在线阅读,更多相关《cisco6509配置手册.docx(29页珍藏版)》请在冰豆网上搜索。

cisco6509配置手册.docx

cisco6509配置手册

 

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/设置默认网关#ship

route

 

Bg-sw-01>(enable)setvtpmodeserver/设置VTP模式#shvtp

domain

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#sh

portchannel

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)setspantreeuplinkfastenable/设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/

C6509-msfc(config-if)#noshutdown

C6509-msfc(config-if)#standby1ip10.234.180.234

虚IP地址

 

/进入虚子接口

加ip地址

/开启端口

/建HSRP组并设

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.22

int

Bg-sw-02>(enable)setiproutedefault10.234.180.234/

 

255.255.255.0/设置管理接口#sh

 

设置默认网关#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)setspantreeuplinkfastenable/设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)#exit

 

C4006-L3#copyrunningconfig

[page]

 

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 农林牧渔 > 林学

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1