欢迎来到天天文库
浏览记录
ID:42614571
大小:241.86 KB
页数:6页
时间:2019-09-18
《Cisco 数据中心之 HSRP, vPC 以及 vPC Peer-Gateway 介绍》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、HowHSRPWorksHotStandbyRoutingProtocolisawell-knownfeatureofCiscoIOS. ThegoalofHSRPistoprovidearesilientdefault-gatewaytohostsonaLAN. ThisisaccomplishedbyconfiguringtwoormorerouterstosharethesameIPaddressandMACaddress. HostsontheLANareconfiguredwithasingledefault-gateway(eitherstaticallyorviaDHCP).
2、Uponsendingitsfirstpackettoanothersubnet,thehostARPsfortheMACaddressofthedefaultgateway. ItreceivesanARPreplywiththevirtualMACoftheHSRPgroup. TheIPpacketisencapsulatedinanEthernetframewithadestinationMACaddressofthedefaultgateway. Iftheprimaryrouterfails,HSRPkeepalivesarelost,andthestandbyHSRProut
3、ertakesoverthevirtualIPaddressandMACaddress. Thehostdoesnotneedtoknowthatanythinghaschanged.Inthediagramabove,theuser(10.1.1.100)isconfiguredwithadefault-gatewayof10.1.1.1. Whentheusersendsitsfirstpacketto10.5.5.5,itARPsfor10.1.1.1. Inmyexample,RouterAistheHSRPprimaryrouter,soitsendsanARPreplywith
4、thevirtualMACaddressof0000.0c07.AC05. TheUserPCthenencapsulatestheIPpacket(destinationIP=10.5.5.5)inanEthernetframewithadestinationMACaddressof0000.0c07.AC05. RouterAacceptstheframeandroutesthepacket.TheaboveparagraphstellthestoryofpacketscomingfromtheHSRP-enabledLAN. Butwhathappenstoreplypacketsc
5、omingfrom10.5.5.5to10.1.1.100? Theanswerissimple,andintuitiveifyoufollowstep-by-step. First,theServercreatesanIPpacketwithadestinationof10.1.1.100. ItencapsulatesitinanEthernetframeandforwardsittoitsdefaultgateway(forthisexample,let’ssayitisRouterA). RouterAstripstheEthernetframinganddeterminesthe
6、nexthopisonthelocalsubnet10.1.1.0/24. ItencapsulatesthepacketinanEthernetframewithaMACaddressof0021.6a98.1952. ThesourceMACaddressisthephysicalMACaddressofRouterA(0024.F71E.3343). RouterAdoesnotusethevirtualMACaddressforpacketsitroutesontothelocalsubnet.SoWhatisvPC?Nowthatwe’vecoveredHSRP,let’stal
7、kaboutVirtualPortChanneling(vPC). vPCallowstwoNX-OSdevicestoshareaport-channel. Attacheddevicesbelievethattheyareconnectedtoasingledeviceviaanetherchannelbundle. Thisisgreatbecauseiteliminatesspanning-treeblockin
此文档下载收益归作者所有