企业网络构建路由配置

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

企业网络构建实验RouterB(config)#linevty04RouterB(config-line)#loginRouterB(config-line)#passwordcisco1RouterB(config-line)#exitRouterB(config)#enablepasswordcisco2RouterC(config)#linevty04RouterC(config-line)#loginRouterC(config-line)#passwordcisco3RouterC(config-line)#exitRouterC(config)#enablepasswordcisco4VTYABC192.168.4.3/24192.168.1.2/24.1192.168.2.0/24s0/1f0/0s0/1s0/1192.168.3.0/24s0/2.1.1.2.2f0/0f0/0.1.2RouterAtelnet192.168.3.2Password:RouterBctrl-shift-6,xRouterAtelnet192.168.2.2Password:RouterCctrl-shift-6,xRouterARouterAshowsessionRouterAresumenRouterAdisconnectnPC2PC1RouterA(config)#linevty04RouterA(config-line)#loginRouterA(config-line)#passwordcisco5RouterA(config)#enablepasswordcisco6VTYABC192.168.4.3/24192.168.1.2/24.1192.168.2.0/24s0/1f0/0s0/1s0/1192.168.3.0/24s0/2.1.1.2.2f0/0f0/0.1.2RouterBtelnet192.168.2.1Password:RouterARouterCtelnet192.168.3.1Password:RouterAPC2PC1RouterAshowuserRouterAclearlinen如图所示,如果从PC1telnet路由器B或C,则需要在路由器B或C上配置到PC1所在网段的静态路由。•rommon2set(查看配置)•rommon3IP_ADDRESS=10.32.10.1(路由器的ip地址)•rommon4IP_SUBNET_MASK=255.255.255.0(路由器的掩码)•rommon5DEFAULT_GATEWAY=10.32.10.32(pc机的ip地址)•rommon6TFTP_SERVER=10.32.10.32(是pc机的ip地址)•rommon7TFTP_FILE=C2600-I-MZ.122-11.BIN(ios文件名称)•rommon8set•rommon9tftpdnld•rommon10reset升级IOS•switch:flash_init•switch:load_helper•switch:copyxmodem:flash:c2950-i6k2l2q4-mz.121-22.EA.bin•系统提示不断出现C这个字母就可以开始传文件了•点击超级终端菜单:传送---→发送文件,在协议选项中选择Xmodem或者Xmodem-1K协议,然后选择IOS文件,开始传送。•switch:boot升级IOS•switch:flash_init•switch:load_helper•switch:dirflash:•switch:renameflash:config.textflash:config.old•switch:boot•Switch#renameflash:config.oldflash:config.text•Switch#copyflash:config.textsystem:running−config•Switch(config)#noenablesecret•Switch(config)#copyrunstart口令恢复重启路由器,在60秒内按下CTRL+Break键rommon1confreg0x2142rommon2resetRouterenableRouter#copystartup-configrunning-configRouter#configtRouter(config)#enablesecretxxxxxxRouter(config)#config-register0x2102Router(config)#exitRouter#copyrunning-configstartup-configRouter#reload口令恢复VLAN配置•VTP(可选)•配置trunk•创建vlan•Vlan中添加端口单个交换机上配置VLAN1900(config)#vlan2nameVLAN_21900(config)#vlan3nameVLAN_31900(config)#interfacee0/51900(config-if)#vlan-membershipstatic21900(config)#interfacee0/91900(config-if)#vlan-membershipstatic32950#vlandatabase2950(vlan)#vlan2nameVLAN_22950(vlan)#vlan3nameVLAN_32950(config)#intfa0/22950(config-if)#switchportaccessvlan22950(config)#intfa0/32950(config-if)#switchportaccessvlan31900#showvlan[vlan#]显示vlan信息1900#showvlan-membership显示接口的vlan分配2950#showvlan[idvlan#]显示vlan信息2950#showvlanbrief显示接口的vlan分配跨主干VLAN的配置trunkvlan4vlan2vlan3vlan4vlan3vlan21900A#configureterminal1900A(cofig)#vtpserver1900A(cofig)#vtpdomainCisco1900A(cofig)#pruningenable1900A(config)#interfacefa0/261900A(config-if)#trunkon1900A(config)#vlan2nameVLAN21900A(config)#vlan3nameVLAN31900A(config)#vlan4nameVLAN41900A(config)#interfacee0/21900A(config-if)#vlan-membershipstatic21900A(config)#interfacee0/31900A(config-if)#vlan-membershipstatic31900A(config)#interfacee0/51900A(config-if)#vlan-membershipstatic41900B#configureterminal1900B(cofig)#vtpclient1900A(cofig)#vtpdomainCisco1900B(config)#interfacefa0/261900B(config-if)#trunkon1900B(config)#interfacee0/61900B(config-if)#vlan-membershipstatic21900B(config)#interfacee0/71900B(config-if)#vlan-membershipstatic31900B(config)#interfacee0/81900B(config-if)#vlan-membershipstatic41900#showvtp查看vtp配置信息1900#showtrunkA|B显示trunk参数1900#showvlan[vlan#]显示vlan信息1900#showvlan-membership显示接口的vlan分配1900A#configureterminal1900A(config)#interfacefa0/261900A(config-if)#trunkon1900A(config)#interfacefa0/271900A(config-if)#trunkon1900A(config)#ipadd10.5.1.2255.255.255.01900A(config)#ipdefault-gateway10.5.1.1trunkvlan4vlan2vlan3vlan4vlan3vlan2R(config)#intf0/0R(config-if)#noipaddressR(config-if)#noshutdownR(config)#intf0/0.1R(config-subif)#encapsulationisl1R(config-subif)#ipadd10.5.1.1255.255.255.0R(config)#intf0/0.2R(config-subif)#encapsulationisl2R(config-subif)#ipadd10.5.2.1255.255.255.0R(config)#intf0/0.3R(config-subif)#encapsulationisl3R(config-subif)#ipadd10.5.3.1255.255.255.0R(config)#intf0/0.4R(config-subif)#encapsulationisl4R(config-subif)#ipadd10.5.4.1255.255.255.01900B#configureterminal1900B(config)#interfacefa0/261900B(config-if)#trunkon1900B(config)#ipadd10.5.1.3255.255.255.01900B(config)#ipdefault-gateway10.5.1.1VLAN间路由跨主干VLAN的配置2950A#vlandatabase2950A(vlan)#vtpserver2950A(vlan)#vtpdomainCisco2950A(vlan)#vtppassword1232950A(vlan)#vtppruning2950A(config)#interfacefa0/242950A(config-if)#switchportmodetrunk2950A#vlandatabase2950A(vlan)#vlan2nameVLAN_22950A(vlan)#vlan3nameVLAN_32950A(config)#interfacef0/22950A(config-if)#switchportaccessvlan22950A(config)#interfacef0/32950A(config-if)#switchportaccessvlan32950B#vlandatabase2950B(vlan)#vtpclient2950B(vlan)#vtpdomainCisco2950B(vlan)#vtppassword1232950B(config)#interfacefa0/242950B(config-if)#switchportmodetrunk2950B(config)#interfacef0/42950B(config-if)#switchportaccessvlan22950B(config)#interfacef0/32950B(config-if)#switchportaccessvlan32950#showvtps

1 / 100
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功