CCNP精粹系列之二十三--BGP单自治系统通信,推荐
2009-04-23 14:43
387 查看
BGP单自治系统间的通信
Router(config)#host A
A(config)#int lo0
A(config-if)#ip addr 192.168.10.1 255.255.255.0
A(config-if)#no shut
A(config)#int s1/0
A(config-if)#ip addr 202.110.100.1 255.255.255.0
A(config-if)#encap hdlc
A(config-if)#clock rate 56000
A(config-if)#no shut
A(config)#router bgp 64500
A(config-router)#neighbor 202.110.100.2 remote-as 64500
A(config-router)#net 192.168.10.0
A(config-router)#net 202.110.100.0
A#show ip bgp
BGP table version is 3, local router ID is 192.168.10.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 192.168.10.0 0.0.0.0 0 32768 i
* i202.110.100.0 202.110.100.2 0 100 0 i
*> 0.0.0.0 0 32768 i
B路由器;:
Router(config)#host B
B(config)#int s1/0
B(config-if)#ip addr 202.110.100.2 255.255.255.0
B(config-if)#encap hdlc
B(config-if)#no shut
B(config-if)#exit
*Apr 21 20:39:14.679: %LINK-3-UPDOWN: Interface Serial1/0, changed state to up
*Apr 21 20:39:15.679: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to uper bgp 64500
B(config-router)#router bgp 64500
B(config-router)#neighbor 202.110.100.1 remo
B(config-router)#neighbor 202.110.100.1 remote
B(config-router)#neighbor 202.110.100.1 remote-as 64500
B(config-router)#net 202.110.100.0
B#show ip ro
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
C 202.110.100.0/24 is directly connected, Serial1/0
B#
在b上ping A路由器上10网段:
B#ping 192.168.10.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.10.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/43/96 ms
同一自治系统通信是没有问题的。在下一篇博文将有深的研究。
本文出自 “申雷岗 鸿鹄驰骋 欢迎您” 博客,请务必保留此出处http://shenleigang.blog.51cto.com/639523/152603
Router(config)#host A
A(config)#int lo0
A(config-if)#ip addr 192.168.10.1 255.255.255.0
A(config-if)#no shut
A(config)#int s1/0
A(config-if)#ip addr 202.110.100.1 255.255.255.0
A(config-if)#encap hdlc
A(config-if)#clock rate 56000
A(config-if)#no shut
A(config)#router bgp 64500
A(config-router)#neighbor 202.110.100.2 remote-as 64500
A(config-router)#net 192.168.10.0
A(config-router)#net 202.110.100.0
A#show ip bgp
BGP table version is 3, local router ID is 192.168.10.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 192.168.10.0 0.0.0.0 0 32768 i
* i202.110.100.0 202.110.100.2 0 100 0 i
*> 0.0.0.0 0 32768 i
B路由器;:
Router(config)#host B
B(config)#int s1/0
B(config-if)#ip addr 202.110.100.2 255.255.255.0
B(config-if)#encap hdlc
B(config-if)#no shut
B(config-if)#exit
*Apr 21 20:39:14.679: %LINK-3-UPDOWN: Interface Serial1/0, changed state to up
*Apr 21 20:39:15.679: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to uper bgp 64500
B(config-router)#router bgp 64500
B(config-router)#neighbor 202.110.100.1 remo
B(config-router)#neighbor 202.110.100.1 remote
B(config-router)#neighbor 202.110.100.1 remote-as 64500
B(config-router)#net 202.110.100.0
B#show ip ro
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
C 202.110.100.0/24 is directly connected, Serial1/0
B#
在b上ping A路由器上10网段:
B#ping 192.168.10.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.10.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/43/96 ms
同一自治系统通信是没有问题的。在下一篇博文将有深的研究。
本文出自 “申雷岗 鸿鹄驰骋 欢迎您” 博客,请务必保留此出处http://shenleigang.blog.51cto.com/639523/152603
相关文章推荐
- CCNP精粹系列之二十六--BGP不同自治系统间通信,推荐
- CCNP精粹系列之二十五--BGP的水平分隔,推荐
- CCNP精粹系列之三十一--BGP源地址问题二,推荐
- CCNP精粹系列之二十七--挑战BGP,推荐
- CCNP精粹系列之三十二--BGP下一跳问题,推荐
- CCNP精粹系列之二十二--BGP,博主推荐
- CCNP精粹系列之二十八--挑战BGP,推荐
- CCNP精粹系列之二十九--发布bgp子网信息,推荐
- CCNP精粹系列之二十四--BGP的水平分隔,推荐
- CCNP精粹系列之三十--BGP源地址问题,推荐
- CCNP精粹系列之二十--策略路由实战二,博主推荐文章
- CCNP精粹系列之十九--策略路由实战,博主推荐文章
- CCNP精粹系列之二十一--路由地址转换实战二,博主推荐
- CCNP精粹系列之十五---实现单交换机VLAN间的通信
- CCNP精粹系列之十六--实现三层交换的vlan间通信和路由器的配合使用
- CCNP精粹系列之十七--路由映射实战,博主推荐
- CCNP精粹系列之十八--路由映射实战二,博主推荐文章
- 自治系统间的路由协议--BGP详细介绍
- BGP(自治系统间的路由)协议详解
- CCNP系列三十四--- Bgp的本地优先属性