http://blog.sina.com.cn/ccie2007[订阅]
字体大小: 正文
BGP Communites – No-Export(2007-08-15 10:33:03)
Objective: Configure AS 2 using the community No-Export so that hosts on R3’s
Ethernet have access to VLANs 5 and 43 but AS 1 and AS 3 cannot reach
VLANs 43 and 5 respectively
Directions
" Configure the topology per the diagram
" Configure EIGRP AS 2 on the links between R1 & R3 and R2 & R3
" Configure BGP on R1, R2, R3, R4, and R5 per the diagram
" R1 should peer with R4
" R2 should peer with R5
" R1, R2, and R3 should all peer with each other
" Advertise R3’s Ethernet into BGP on R3
" Advertise VLAN 5 into BGP on R5
" Advertise VLAN 43 into BGP on R4
" Configure the community No-Export on R1 and R2 so that routes coming from
AS 1 are not passed to AS 3 and vice-versa
配置:
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 eigrp 2
network 155.1.13.1 0.0.0.0
no auto-summary
!
router bgp 2
neighbor 155.1.13.3 remote-as 2
neighbor 155.1.13.3 next-hop-self
neighbor 155.1.23.2 remote-as 2
neighbor 155.1.23.2 next-hop-self
neighbor 155.1.23.2 send-community
neighbor 155.1.146.4 remote-as 3
neighbor 155.1.146.4 route-map NO_EXPORT in
!
route-map NO_EXPORT permit 10
set community no-export
R2:
interface FastEthernet0/0
ip address 192.10.1.2 255.255.255.0
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 155.1.0.2 255.255.255.0
frame-relay interface-dlci 205
!
interface Serial0/1
ip address 155.1.23.2 255.255.255.0
!
router eigrp 2
network 155.1.23.2 0.0.0.0
no auto-summary
!
router bgp 2
neighbor 155.1.0.5 remote-as 1
neighbor 155.1.0.5 route-map NO_EXPORT in
neighbor 155.1.13.1 remote-as 2
neighbor 155.1.13.1 next-hop-self
neighbor 155.1.13.1 send-community
neighbor 155.1.23.3 remote-as 2
neighbor 155.1.23.3 next-hop-self
!
route-map NO_EXPORT permit 10
set community no-export
R3:
interface Ethernet0/0
ip address 155.1.37.3 255.255.255.0
!
interface Serial1/2
ip address 155.1.13.3 255.255.255.0
clockrate 64000
!
interface Serial1/3
ip address 155.1.23.3 255.255.255.0
clockrate 64000
!
router eigrp 2
network 155.1.13.3 0.0.0.0
network 155.1.23.3 0.0.0.0
no auto-summary
!
router bgp 2
network 155.1.37.0 mask 255.255.255.0
neighbor 155.1.13.1 remote-as 2
neighbor 155.1.23.2 remote-as 2
R4:
interface Ethernet0/0
ip address 204.12.1.4 255.255.255.0
!
interface Ethernet0/1
ip address 155.1.146.4 255.255.255.0
!
router bgp 3
network 204.12.1.0
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.2 502 broadcast
!
interface Ethernet0/1
ip address 155.1.5.5 255.255.255.0
!
router bgp 1
network 155.1.5.0 mask 255.255.255.0
neighbor 155.1.0.2 remote-as 2
验证:
Rack1R1#show ip bgp 155.1.5.0
BGP routing table entry for 155.1.5.0/24, version 3
Paths: (1 available, best #1, table Default-IP-Routing-
Table, not advertised to EBGP peer)
Not advertised to any peer
1
155.1.23.2 (metric 21024000) from 155.1.23.2
(150.1.2.2)
Origin IGP, metric 0, localpref 100, valid, internal,
best
Community: no-export
 
 
加载中,请稍候...
  • 评论加载中,请稍候...

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

发评论

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

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