ZXR105900ESeriesCongurationGuide(IPv4Routing)
CongurationonS2:
S2#configterminal
S2(config)#interfacevlan10
S2(config-if-vlan10)#ipaddress192.168.2.1255.255.255.252
S2(config-if-vlan10)#exit
S2(config)#routerbgp65001
S2(config-bgp)#neighbor192.168.2.2remote-as65000
S2(config-bgp)#network18.0.0.0255.255.255.0
S2(config-bgp)#exit
S2(config)#routerospf1
S2(config-ospf)#network18.0.0.00.255.255.255area0
S2(config-ospf)#exit
CongurationonS1:
S1#configterminal
S1(config)#interfacevlan10
S1(config-if-vlan10)#ipaddress192.168.2.2255.255.255.252
S1(config-if-vlan10)#exit
S1(config)#routerbgp65000
S1(config-bgp)#neighbor192.168.2.1remote-as65001
S1(config-bgp)#exit
UseshowipbgproutetoviewBGProutingtableonS1.
S1#showipbgproute
Statuscodes:*-valid,>-best,i-internal,s-stale
Origincodes:i-IGP,e-EGP,?-incomplete
NetworkNextHopMetricLocPrfRtPrfPath
*>18.0.0.0/8192.168.2.12065001i
TheaddressundertheentryofNext-hopisthenext-hopaddressofBGProute.Ifthe
addressisrepresentedasfullzero,thatmeansthisrouteisgeneratedbyrouteritself.
ThevalueundertheLocal-PreistheprioritylevelofroutewhichislearnedbyBGP .
Thedefaultvalueis100.
TheeldPathshowstheoriginofthisroute.Threetypes:IGP ,EGPandincomplete.
Note:
àThesymbol*indicatestherouteisavailable.
àThesymbol>indicatestherouteistheoptimizedchoice.
àThesymboliindicatestherouteisaIBGProute.
àTheroutewithout"i"indicatesthisisaEBGProuteorlocalroute.
5-18
SJ-20150114102049-003|2015-01-15(R1.0)ZTEProprietaryandCondential