資源描述:
《路由器rip動態(tài)路由配置命令》由會員上傳分享,免費在線閱讀,更多相關內容在行業(yè)資料-天天文庫。
1、三層交換機(Csico3560)配置Switch>enSwitch#configtEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Switch(config)#hostnamejaohuanji修改名稱jaohuanji(config)#vlan10創(chuàng)建VLANjaohuanji(config-vlan)#exitjaohuanji(config)#vlan20創(chuàng)建VLANjaohuanji(config-vlan)#exitjaohuanji(config)#intf0/10進入端口配置模式jaohu
2、anji(config-if)#switchportaccessvlan10將端口劃分到VLAN中jaohuanji(config-if)#exitjaohuanji(config)#intf0/20進入端口配置模式jaohuanji(config-if)#switchportaccessvlan20將端口劃分到VLAN中jaohuanji(config)#^Z%SYS-5-CONFIG_I:Configuredfromconsolebyconsolejaohuanji#showvlan查看VLAN信息VLANNameStatusPorts---------
3、-------------------------------------------------------------------1defaultactiveFa0/1,Fa0/2,Fa0/3,Fa0/4Fa0/5,Fa0/6,Fa0/7,Fa0/8Fa0/9,Fa0/11,Fa0/12,Fa0/13Fa0/14,Fa0/15,Fa0/16,Fa0/17Fa0/18,Fa0/19,Fa0/21,Fa0/22Fa0/23,Fa0/24,Gig0/1,Gig0/210VLAN0010activeFa0/1020VLAN0020activeFa0/201002
4、fddi-defaultactive1003token-ring-defaultactive1004fddinet-defaultactive1005trnet-defaultactiveVLANTypeSAIDMTUParentRingNoBridgeNoStpBrdgModeTrans1Trans2--------------------------------------------------------------------1enet1000011500-----0010enet1000101500-----0020enet1000201500-
5、----001002enet1010021500-----00jaohuanji#configtEnterconfigurationcommands,oneperline.EndwithCNTL/Z.jaohuanji(config)#intvlan10進入VLAN10%LINK-5-CHANGED:InterfaceVlan10,changedstatetoup%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceVlan10,changedstatetoupjaohuanji(config-if)#ipaddress192
6、.168.1.1255.255.255.0配置VLAN10的虛擬接口IP地址jaohuanji(config-if)#noshut開啟端口jaohuanji(config-if)#exitjaohuanji(config)#intvlan20進入VLAN20%LINK-5-CHANGED:InterfaceVlan20,changedstatetoupjaohuanji(config-if)#ipaddress192.168.3.1255.255.255.0配置VLAN20的虛擬接口IP地址jaohuanji(config-if)#noshut開啟端口jao
7、huanji(config)#^Z%SYS-5-CONFIG_I:Configuredfromconsolebyconsolejaohuanji#showiproute查詢路由表配置Codes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaN1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2E1-OSPFexternaltype1,E2-OSPFexternaltype
8、2,E-EGPi-IS-IS,L1-IS-ISlev