http://blog.sina.com.cn/ccie2007[订阅]
字体大小: 正文
BGP Next-Hop Processing – Next-Hop-Self(2007-08-12 13:21:22)
Objective: Configure the next-hop-self command where necessary to gain reachability
between R3’s Ethernet segment and VLAN 5

Directions
" Configure the topology per the diagram
" Configure BGP on R1, R3, R4, and R5 per the diagram
" R1 should peer with R3 and R4
" R4 should peer with R5
" Advertise R3’s Ethernet segment into BGP
" Advertise R5’s Ethernet segment into BGP
" Configure the next-hop-self command where necessary to gain reachability
between R3’s Ethernet segment and VLAN 5
Final Configuration
配置:
R1:
interface FastEthernet0/0
ip address 155.1.146.1 255.255.255.0
!
interface Serial0/1
ip address 155.1.13.1 255.255.255.0
!
router bgp 2
neighbor 155.1.13.3 remote-as 2
neighbor 155.1.13.3 next-hop-self
neighbor 155.1.146.4 remote-as 1
 
R3:
interface Serial1/2
ip address 155.1.13.3 255.255.255.0
clockrate 64000
!
router bgp 2
network 155.1.37.0 mask 255.255.255.0
neighbor 155.1.13.1 remote-as 2
 
R4:
interface Ethernet0/1
ip address 155.1.146.4 255.255.255.0
!
interface Serial0/1
ip address 155.1.45.4 255.255.255.0
!
router bgp 1
neighbor 155.1.45.5 remote-as 1
neighbor 155.1.45.5 next-hop-self
neighbor 155.1.146.1 remote-as 2
 
R5:
interface Ethernet0/1
ip address 155.1.5.5 255.255.255.0
!
interface Serial0/1
ip address 155.1.45.5 255.255.255.0
clockrate 64000
!
router bgp 1
network 155.1.5.0 mask 255.255.255.0
neighbor 155.1.0.3 remote-as 2
neighbor 155.1.45.4 remote-as 1
检验:
Rack1R3#ping 155.1.5.5 source 155.1.37.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 155.1.5.5, timeout is 2
seconds:
Packet sent with a source address of 155.1.37.3
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max =
56/60/72 ms
Rack1R1#show ip bgp
<output omitted>
Network Next Hop Metric LocPrf
Weight Path
*> 155.1.5.0/24 155.1.146.4
0 1 i
*>i155.1.37.0/24 155.1.13.3 0 100
0 i
Rack1R3#show ip bgp
<output omitted>
Network Next Hop Metric LocPrf
Weight Path
*>i155.1.5.0/24 155.1.13.1 0 100
0 1 i
*> 155.1.37.0/24 0.0.0.0 0
32768 i
Rack1R4#show ip bgp
<output omitted>
Network Next Hop Metric LocPrf
Weight Path
*>i155.1.5.0/24 155.1.45.5 0 100
0 i
*> 155.1.37.0/24 155.1.146.1
0 2 i
Rack1R5#show ip bgp
<output omitted>
Network Next Hop Metric LocPrf
Weight Path
*> 155.1.5.0/24 0.0.0.0 0
32768 i
*>i155.1.37.0/24 155.1.45.4 0 100
0 2 i
 
 
加载中,请稍候...
  • 评论加载中,请稍候...

验证码:请点击后输入验证码  收听验证码

发评论

以上网友发言只代表其个人观点,不代表新浪网的观点或立场。

相关博文
读取中...
推荐博文
读取中...