PDA

View Full Version : Gap van de ve route-map voi BGP



netpro
17-08-2003, 01:14 PM
Mình làm lab BGP gặp một vấn đề , các bạn xem giúp mình :

RouterB

int s0
ip 10.1.1.2 255.255.255.0


router bgp 1
neighbor 10.1.1.1 remote-as 2
neighbor 10.1.1.1 route-map as2 in
!
access-list 1 permit 156.26.32.0 0.0.0.255
route-map as2 permit 10
match ip address 1
set metric 10
set local-preference 120
set weight 30
set as-path prepend 4 5


RouterA

interface Loopback0
ip address 156.26.32.1 255.255.255.0
!
interface Loopback1
ip address 144.223.8.1 255.255.255.0
!
interface Loopback2
ip address 10.2.2.1 255.255.255.0

interface Serial0
ip address 10.1.1.1 255.255.255.0
clockrate 64000

router bgp 2
redistribute static
network 156.26.32.0 mask 255.255.255.0
network 144.223.8.0 mask 255.255.255.0
neighbor 10.1.1.2 remote-as 1
no auto-summary
!
ip route 11.1.1.0 255.255.255.0 Loopback2

May anh kiem tra dung em xem tai sao khi em show ip bgp tren RB thi lai thay

Network Next Hop Metric LocPrf Weight Path
*> 11.1.1.0/24 10.1.1.1 10 120 30 4 5 2 ?
*> 144.223.8.0/24 10.1.1.1 10 120 30 4 5 2 i
*> 156.26.32.0/24 10.1.1.1 10 120 30 4 5 2 i

Le ra theo route-map thi chi co 156.26.32.0 la co metric 10 , local Pre 120
...

Mong được góp ý !

To cccp : Cám ơn anh nhé , chúc anh sẽ sớm được certified.

cccp
17-08-2003, 02:21 PM
Khi khai báo route-map bạn phải thêm

route-map as2 deny 20

HTH
CCCP

Cám ơn lời chúc tốt đẹp của bạn

netpro
18-08-2003, 12:43 AM
Em đã thử lại trên lab và kết quả OK .

Thank you very much .