http://blog.sina.com.cn/ccie2007[订阅]
字体大小: 正文
BGP Bestpath Selection – Origin(2007-08-11 15:20:48)
 Objective: Modify the BGP Origin code in AS 2 so that traffic from R3’s Ethernet
segment going to VLAN 5 is first sent to R1
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
" R5 should peer with R3 and R5
" Advertise R3’s Ethernet segment into BGP
" Advertise R5’s Ethernet segment into BGP
" Configure R3 so that the Origin of the route learned from R1 is preferred over the
one learned from R5
配置:
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.0.5 remote-as 1
neighbor 155.1.0.5 route-map ORIGIN in
neighbor 155.1.13.1 remote-as 2
neighbor 155.1.13.1 next-hop-self
!
route-map ORIGIN permit 10
set origin incomplete
R4:
interface Ethernet0/1
ip address 155.1.146.4 255.255.255.0
half-duplex
!
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 Serial0/0
ip address 155.1.0.5 255.255.255.0
encapsulation frame-relay
frame-relay map ip 155.1.0.3 503 broadcast
no frame-relay inverse-arp
!
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
neighbor 155.1.45.4 next-hop-self
验证:
Rack1R3#show ip bgp 155.1.5.0 255.255.255.0
BGP routing table entry for 155.1.5.0/24, version 9
Paths: (2 available, best #1, table Default-IP-Routing-
Table)
Advertised to update-groups:
2
1
155.1.13.1 from 155.1.13.1 (155.1.146.1)
Origin IGP, metric 0, localpref 100, valid, internal,
best
1
155.1.0.5 from 155.1.0.5 (155.1.45.5)
Origin incomplete, metric 0, localpref 100, valid,
external
转载请注明出处
加载中,请稍候...
  • 评论加载中,请稍候...

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

发评论

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

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