《Cisco使用MSTP+VRRP+静态路由+子网划分+DHCP实验案例.docx》由会员分享,可在线阅读,更多相关《Cisco使用MSTP+VRRP+静态路由+子网划分+DHCP实验案例.docx(12页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、1008172. 16.1. 0/24TlanlO: 192.168.10.60192.168.10.62vlanll:192,168. 10.124g:】Tlinl3:192,168. 10. 252g:192 I6B. 10. 254vlanlOlanllvlanl2vlanl3Cisco使用MSTP+VRRP+静态路由+子网划分+DHCP实验案例Hanll:192.168.10.125g:192.16. 10.126vlan12:191168.10.1adm IM 10. 190vlanl3:192,168.10. 23。: 192.166.10. 254配置trunkIOU6配置:使用
2、dotlq封装ethernet 0/1 -3ethernet 0/1 -3IOU6(config)#interface rangeIOU6(config-if-range)#switchport trunk encapsulation dotlqIOU6(config-if-range)#switchport mode trunkIOU6(config-if-range)#exIOU7(config-if)#interface vlan 13IOU7(config-if)#vrrp 13 priority 110IOU7(config-if)#vrrp 13 preemptIOU7(confi
3、g-if)#vrrp 13 track 100 decrement 30IOU7(config-if)#no sh使用show vrrp brief查看iou6,7配置结果I0U6#show vrrICXJ6#show vrrp briI0U6#show vrrp briefInterfaceGrpPriTimeOwn PreStateMaster addrGroup addrV110ie1103570YMasterVlll111103570YMasterV11212903648YBackupV113IOU6#013903648YBackup脸5%许dWIOU7#show vrrpbriefI
4、nterfaceGrpPriTimeOwn PreStateMaster addrGroup addr*Z11010903648YBackup192.16810.62k/11111903648YBackup192.168,10.126“12121103570YMaster“13131103570YMasterI0U7#51CTO博客I OU 7#配置网络设备IP地址:Iou6:IOU6(config)#interface ethernet 0/2IOU6(config-if)#no switchportIOU6(config-if)#no shutdownIou7:IOU7(config)#i
5、nterface ethernet 0/2IOU7(config-if)#no switchportIOU7(config-if)#no shIou8:IOU8(config)#interface ethernet 0/0IOU8(config-if)#duplex fullIOU8(config-if)#no shIOU8(config-if)#exIOU8(config)#interface ethernet 0/1IOU8(config-if)#duplex fullIOU8(config-if)#no shIOU8(config-if)#no shutdownIOU8(config-i
6、f)#exIOU8(config)#interface looOIOU8(config-if)#ex配置静态/默认路由Iou6: Iou7: iou8:IOU8(config)#iprouteIOU8(config)#iprouteIOU8(config)#iproute192.168.10.0 255.255.255.128 172.16.2.1 11IOU8(config)#iproute192.168.10.128 255.255.255.128 172.16.1.1 11在iou8查看路由表:IOU8(config)#do show ip routeCodes: L - locals
7、C - connected S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, 0 - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 OSPF NSSA external type 2 El - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary LI - IS-IS level-1, L2 - IS-IS level-2
8、 ia - IS-IS inter area * - candidate default, U - per-user static route o - OOR, P - periodic downloaded static route, H - NHRP, 1 - LISP a - application route - - replicated route, % - next hop override, p - overrides from PfRGateway of last resort is not set1.0.0.0/32 is subnetted, 1 subnetsC1.1.1
9、.1 is directly connected, LoopbackO172.16.0.0/16 is variably subnetted, 4 subnets, 2 masks172.16.2Nbr TypeEtO/ODesgFWD 2000000128.1P2pEt0/1RootFWD 2000000128.2P2pEt0/2DesgFWD 2000000128.3P2pEt0/3DesgFWD 2000000128.4P2p51 CTO博客JI0U5#show spanning-tree mst 2J# MST2 jBridge I Rootvlans mapped:12-13addr
10、ess aabb.cc00.0500 priorityaddress aabb,cc00.0700 priority32770 (32768 sysid 2)24578 (24576 sysid 2)2000000 rem hops 1932770 (32768 sysid 2)24578 (24576 sysid 2)2000000 rem hops 19port Et0/1costInterfaceRole Sts CostPrio.Nbr TypeFt0/0DesgFWD2000000128.1P2pEte/iRootFWD2000000128.2P2pEtl/0DesgFWD20000
11、00128.5P2pEtl/1DesgFWD2000000128.6P2pI0U551CTO博客配置RRPiou6配置IOU6(config)#track 100 interface ethernet 0/2 line-protocolVlanl0:IOU6(config)#interface vlan 10IOU6(config-if)#vrrp 10 priority 110IOU6(config-if)#vrrp 10 preemptIOU6(config-if)#vrrp 10 track 100 decrement 30Vlanl 1 :IOU6(config)#interface
12、vlan 11IOU6(config-if)#ip address 192.168.10.124 255255255,192IOU6(config-if)#vrrp 11 priority 110IOU6(config-if)#vrrp 11 preemptIOU6(config-if)#vrrp 11 track 100 decrement 30Vlanl2:IOU6(config)#interface vlan 12IOU6(config-if)#vrrp 12 priority 90IOU6(config-if)#vrrp 12 preemptVlanl3:IOU6(config)#in
13、terface vlan 13IOU6(config-if)#vrrp 13 priority 90IOU6(config-if)#vrrp 13 preemptIOU7配置Iou7:IOU7(config)#track 100 interface ethernet 0/2 line-protocolIOU7(config-track)#exIOU7(config)#interface vlan 10IOU7(config-if)#vrrp 10 priority 90IOU7(config-if)#vrrp 10 preemptIOU7(config-if)#no shIOU7(config-if)#interface vlan 11IOU7(config-if)#vrrp 11 priority 90IOU7(config-if)#vrrp 11 preemptIOU7(config-if)#no shIOU7(config-if)#interface vlan 12IOU7(config-if)#vrrp 12 priority 110IOU7(config-if)#vrrp 12 preemptIOU7(config-if)#vrrp 12 track 100 decrement 30IOU7(config-if)#no sh