资源描述:
《路由器rip动态路由配置命令》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、三层交换机(Csico3560)配置Switch>enSwitch#configtEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Switch(config)#hostnamejaohuanji修改名称jaohuanji(config)#vlan10创建VLANjaohuanji(config-vlan)#exitjaohuanji(config)#vlan20创建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