思科4503配置命令

上传人:m**** 文档编号:490300806 上传时间:2024-03-08 格式:DOC 页数:4 大小:32KB
返回 下载 相关 举报
思科4503配置命令_第1页
第1页 / 共4页
思科4503配置命令_第2页
第2页 / 共4页
思科4503配置命令_第3页
第3页 / 共4页
思科4503配置命令_第4页
第4页 / 共4页
亲,该文档总共4页,全部预览完了,如果喜欢就下载吧!
资源描述

《思科4503配置命令》由会员分享,可在线阅读,更多相关《思科4503配置命令(4页珍藏版)》请在金锄头文库上搜索。

1、Vlan划分:1.用随机所配的console电缆连接cisco4503交换机的console口与pc机的com口,在系统的超级终端中新建连接,设置波特率:9600,数据位:&奇偶校验位:无停止位:1,流量控制:无,打开交换机,可以看到switch的自检信息,自检结束后进入到switch的privilegemode2. Switch#showvlan检查交换机的默认vlan设置,默认配置下所有端口属于vlan13. Switch#conft进入globalconfigmodeSwitch(config)#vlan2创建vlan2Switch(config-vlan)#nametest-net设置

2、vlan2的name为test-net(可选)Switch(config-vlan)#end退回到privilegemodeSwitch#showvlan根据需要重复上述1-5步设置,创建vlan3、vlan44. Switch#conft进入globalconfigmodeSwitch(config)#intrangegi2/1-18对第二个module的1到18端口进行设置,注意:1与”-”,”-”与18之间的空格是必须的Switch(config-if-range)#shutdown关闭端口1-18Switch(config-if-range)#switchportmodeaccess设

3、置端口特性为可访问Switch(config-if-range)#switchportaccessvlan2将端口分配给vlan2Switch(config-if-range)#noshutdown激活端口Switch(config-if-range)#endSwitch#showvlan检查当前vlan配置,可以看到端口1-18已经分配给vlan2Switch#copyrunning-configstartup-configcopy当前配置到NVRAMSwitch#shinterfacestatus检查各端口的状态交换机trunk端口的配置:在本方案中,两台CISCO4503使用引擎上的第二

4、个光纤模块端口进行连接,在其中的一台switch#conft进入全局配置模式switch(config)#interfacegi1/2进入到端口配置模式,对第二个光纤模块口进行设置switch(config-if)shutdownswitch(config-if)switchprottrunkencapsulationisl指定trunk端口封装isl协议switch(config-if)switchprotmodetrunk指定这个端口作为trunkswitch(config-if)noshutdown启动这个端口switch(config-if)end退回到privilegeswitch#

5、copyrunning-configstartup-config保存当前配置使重启时生效在第二台4503交换机上重复上述操作。用光纤线连接这两个端口。switch:;ROM状态hostname;用户模式hostname#;特权模式hostname(config)#;全局配置模式hostname(config-if)#;接口状态switchenable;进入特权模式switch#configterminal;进入全局配置模式switch(config)#hostname;设置交换机的主机名switch(config)#enablesecretxxx;设置特权加密口令switch(config)#

6、enablepasswordxxa;设置特权非密口令switch(config)#lineconsole0;进入控制台口switch(config-line)#linevty04;进入虚拟终端switch(config-line)#login;允许登录switch(config-line)#passwordxx;设置登录口令xxswitch#exit;返回命令switch#vlandatabase;进入VLAN设置switch(vlan)#vlan2;建VLAN2switch(vlan)#novlan2;删vlan2switch(config)#intf0/1;进入端口1switch(conf

7、ig-if)#switchportaccessvlan2;当前端口加入vlan2switch(config-if)#switchportmodetrunk;设置为干线switch(config-if)#switchporttrunkallowedvian1,2;设置允许的vianswitch(config-if)#switchporttrunkencapdot1q;设置vlan中继switch(config)#vtpdomain;设置发vtp域名switch(config)#vtppassword;设置发vtp密码switch(config)#vtpmodeserver;设置发vtp模式swi

8、tch(config)#vtpmodeclient;设置发vtp模式switch(config)#interfacevian1;进入vian1switch(config-if)#ipaddress;设置IP地址switch(config)#ipdefauit-gateway;设置默认网关switch#dirfiash:;查看闪存switch#write;保存配置信息switch#showvtp;查看vtp配置信息switch#showrun;查看当前配置信息switch#showvian;查看vian配置信息switch#showinterface;查看端口信息switch#showintf0

9、/0;查看指定端口信息思科交换机详细配置方法和命令switchswitchenableswitch#switch#vlandatabase(进入vlan维护模式)switch(vlan)#vlan2namevlan2(给vlan2命名为vlan2)switch(vlan)#vlan4namevlan4(给vlan4命名为vlan4)switch(vlan)#exit(这里要注意一下,要打入exit退出才有效,不能用ctrl+z或end直接退出,因为这么不能使配置生效!)switch#showvlan(查看vlan的配置,默认有vlan1)switch#configureterminal(进入全

10、局配置模式)switch(config)#interfacefO/1(进入fastethernetO/1接口配置模式)switch(config-if)#switchportmodeaccess(这步可以省略)switch(config-if)#switchportaccessvlan2(把该接口划分到vlan2,记得vlan2之间有空格)switch(config-if)#noshutdown(激活端口)switch(config-if)#exitswitch(config)#interfacef0/2switch(config-if)#switchportmodeaccessswitch(

11、config-if)#switchportaccessvlan4switch(config-if)#noshutdownswitch(config-if)#exitswitch(config)#interfacef0/3switch(config-if)#switchportmodetrunk(设置此口为中继模式)switch(config-if)#noshutdownwitch(config-if)#exit(这里可以直接用ctrl+z或end直接退出到特权模式)1、配置IP地址交换机要能够被网管,必须给它标识一个管理IP地址,默认情况下CISCO交换机的VLAN1为管理VLAN,为该VLA

12、N配上IP地址,交换机就可以被网管了。命令如下:a、进入全局模式:Switch#configureterminalb、进入VLAN1接口模式:Switch(config)#interfacevlan1c、配置管理IP地址:Switch(config-if)#ipaddressA.B.C.Dmask如果当前VLAN不是管理VLAN,只需要将上面第b处命令的vlan的号码换成管理VLAN的号码即可。2、打开SNMP协议a、进入全局模式:Switch#configureterminalb、配置只读的Community,产品默认的只读Community名为publicSwitch(config)#sn

13、mp-servercommunitypublicroc、配置可写的Community,产品默认的可写Community名为privateSwitch(config)#snmp-servercommunityprivaterw3、更改SNMP的Community密码a、将设备分组,并使能支持的各种SNMP版本Switch(config)#snmp-servergroupqycx123v1Switch(config)#snmp-servergroupqycx123v2cSwitch(config)#snmp-servergroupqycx123v3noauthb、分别配置只读和可写communit

14、y女如Switch(config)#snmp-servercommunityqycx123roSwitch(config)#snmp-servercommunityqycx123rw4、保存交换机配置Switch#copyrunstart常用命令1、设置交换机密码a、更改远程TELNNET密码Switch#configureterminalSwitch(config)#linevty04Switch(config-line)#passwordqycx123Switch(config-line)#loginSwitch(config-line)#exitb、更改进入全局配置模式时的密码Switc

15、h#configureterminalSwitch(config)#enablesecretqycx1232、创建并划分VLANa、创建VLANSwitch#vlandatabaseSwitch(vlan)#vlan99nameoffice(创建vlan99并命名为office)b、将端口划分至vlanSwitch(config)#interfacefastEthernet0/8Switch(config-if)#switchportmodeaccessSwitch(config-if)#switchportaccessvlan99(将8号快速以太口划分至vlan99)3、常用调试命令a、显示所有配置命令:Switch#showrunb、显示所有接口状态:Switch#showipintbriefc、显示所有VLAN的信息:Switch#showvlanbrief

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 办公文档 > 解决方案

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号