tracert
14-04-2010, 11:31 PM
Topo như hình dưới:
http://www.nn-furniture.com.vn/ka/topo.jpg
- Khi chưa set thuộc tính Local Preference thì từ Router_A đến Des IP:1.1.1.1 trên Router_E là:
Router_A--->Router_B---->Router_E
- Giờ mình muốn sử dụng thuộc tính Local Preference trên Router_C để đứng từ Router_A traceroute đến Des IP:1.1.1.1 trên Router_E sẽ theo đường là:
Router_A--->Router_B --->Router_C---->Router_E
- Cấu hình trên C:
router bgp 200
no synchronization
bgp log-neighbor-changes
network 152.1.2.1 mask 255.255.255.255
network 152.1.2.128 mask 255.255.255.252
neighbor 152.1.1.2 remote-as 200
neighbor 152.1.1.2 update-source Loopback0
neighbor 152.1.2.6 remote-as 100
neighbor 152.1.2.6 route-map local_pre_map in
no auto-summary
!
access-list 1 permit 1.1.1.1
!
route-map local_pre_map permit 10
match ip address 1
set local-preference 200
!
- các thông tin kiểm tra:
Router_A#show ip bgp
BGP table version is 15, local router ID is 152.1.1.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
*>i1.1.1.1/32 152.1.1.2 0 100 0 100 i
*> 152.1.1.1/32 0.0.0.0 0 32768 i
r>i152.1.1.2/32 152.1.1.2 0 100 0 i
r>i152.1.1.4/30 152.1.1.2 0 100 0 i
r>i152.1.1.64/30 152.1.1.2 0 100 0 i
r>i152.1.2.1/32 152.1.2.1 0 100 0 i
r>i152.1.2.2/32 152.1.2.2 0 100 0 i
r>i152.1.2.128/30 152.1.2.1 0 100 0 i
Router_A#
Router_B#show ip bgp
BGP table version is 25, local router ID is 152.1.1.2
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
* i1.1.1.1/32 152.1.2.6 0 200 0 100 i
*> 152.1.1.10 0 0 100 i
r>i152.1.1.1/32 152.1.1.1 0 100 0 i
*> 152.1.1.2/32 0.0.0.0 0 32768 i
*> 152.1.1.4/30 0.0.0.0 0 32768 i
*> 152.1.1.64/30 0.0.0.0 0 32768 i
r>i152.1.2.1/32 152.1.2.1 0 100 0 i
r>i152.1.2.2/32 152.1.2.2 0 100 0 i
r>i152.1.2.128/30 152.1.2.1 0 100 0 i
Router_B#
Router_C#show ip bgp
BGP table version is 21, local router ID is 152.1.2.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
*> 1.1.1.1/32 152.1.2.6 0 200 0 100 i
* i 152.1.1.10 0 100 0 100 i
r>i152.1.1.1/32 152.1.1.1 0 100 0 i
r>i152.1.1.2/32 152.1.1.2 0 100 0 i
r>i152.1.1.4/30 152.1.1.2 0 100 0 i
r>i152.1.1.64/30 152.1.1.2 0 100 0 i
*> 152.1.2.1/32 0.0.0.0 0 32768 i
r>i152.1.2.2/32 152.1.2.2 0 100 0 i
*> 152.1.2.128/30 0.0.0.0 0 32768 i
Router_C#
Mặc dù đã cấu hình Local Preference = 200 cho hường Router_C<-->Router_E nhưng vẫn không được như ý. Không biết vì sao?, mong các anh chỉ giáo.
Thanks!
http://www.nn-furniture.com.vn/ka/topo.jpg
- Khi chưa set thuộc tính Local Preference thì từ Router_A đến Des IP:1.1.1.1 trên Router_E là:
Router_A--->Router_B---->Router_E
- Giờ mình muốn sử dụng thuộc tính Local Preference trên Router_C để đứng từ Router_A traceroute đến Des IP:1.1.1.1 trên Router_E sẽ theo đường là:
Router_A--->Router_B --->Router_C---->Router_E
- Cấu hình trên C:
router bgp 200
no synchronization
bgp log-neighbor-changes
network 152.1.2.1 mask 255.255.255.255
network 152.1.2.128 mask 255.255.255.252
neighbor 152.1.1.2 remote-as 200
neighbor 152.1.1.2 update-source Loopback0
neighbor 152.1.2.6 remote-as 100
neighbor 152.1.2.6 route-map local_pre_map in
no auto-summary
!
access-list 1 permit 1.1.1.1
!
route-map local_pre_map permit 10
match ip address 1
set local-preference 200
!
- các thông tin kiểm tra:
Router_A#show ip bgp
BGP table version is 15, local router ID is 152.1.1.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
*>i1.1.1.1/32 152.1.1.2 0 100 0 100 i
*> 152.1.1.1/32 0.0.0.0 0 32768 i
r>i152.1.1.2/32 152.1.1.2 0 100 0 i
r>i152.1.1.4/30 152.1.1.2 0 100 0 i
r>i152.1.1.64/30 152.1.1.2 0 100 0 i
r>i152.1.2.1/32 152.1.2.1 0 100 0 i
r>i152.1.2.2/32 152.1.2.2 0 100 0 i
r>i152.1.2.128/30 152.1.2.1 0 100 0 i
Router_A#
Router_B#show ip bgp
BGP table version is 25, local router ID is 152.1.1.2
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
* i1.1.1.1/32 152.1.2.6 0 200 0 100 i
*> 152.1.1.10 0 0 100 i
r>i152.1.1.1/32 152.1.1.1 0 100 0 i
*> 152.1.1.2/32 0.0.0.0 0 32768 i
*> 152.1.1.4/30 0.0.0.0 0 32768 i
*> 152.1.1.64/30 0.0.0.0 0 32768 i
r>i152.1.2.1/32 152.1.2.1 0 100 0 i
r>i152.1.2.2/32 152.1.2.2 0 100 0 i
r>i152.1.2.128/30 152.1.2.1 0 100 0 i
Router_B#
Router_C#show ip bgp
BGP table version is 21, local router ID is 152.1.2.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
*> 1.1.1.1/32 152.1.2.6 0 200 0 100 i
* i 152.1.1.10 0 100 0 100 i
r>i152.1.1.1/32 152.1.1.1 0 100 0 i
r>i152.1.1.2/32 152.1.1.2 0 100 0 i
r>i152.1.1.4/30 152.1.1.2 0 100 0 i
r>i152.1.1.64/30 152.1.1.2 0 100 0 i
*> 152.1.2.1/32 0.0.0.0 0 32768 i
r>i152.1.2.2/32 152.1.2.2 0 100 0 i
*> 152.1.2.128/30 0.0.0.0 0 32768 i
Router_C#
Mặc dù đã cấu hình Local Preference = 200 cho hường Router_C<-->Router_E nhưng vẫn không được như ý. Không biết vì sao?, mong các anh chỉ giáo.
Thanks!