hoang12
24-07-2010, 06:02 PM
Hi all,em vừa mới học bgp và làm 1 bài lap,và em có 1 số thắc mắc mong anh chị giải thích giúp.Mô hình lap như sau:
http://vnpro.org/forum/attachment.php?attachmentid=2639&d=1279911460&thumb=1 (http://vnpro.org/forum/attachment.php?attachmentid=2639&d=1279911460)
Và đây là config:
+R9:
interface Serial0/0
ip address 192.168.1.1 255.255.255.0
ip nat outside
!
interface Serial0/1
ip address 192.168.2.1 255.255.255.0
ip nat inside
router bgp 1
no synchronization
bgp log-neighbor-changes
network 192.168.1.0
neighbor 192.168.1.2 remote-as 3
neighbor 192.168.2.2 remote-as 1
no auto-summary
!
ip http server
!
!
ip nat inside source static 192.168.2.2 192.168.1.1
+R10:
interface Serial0/0
ip address 172.16.1.1 255.255.255.0
ip nat outside
!
interface Serial0/1
ip address 192.168.2.2 255.255.255.0
ip nat inside
router bgp 1
no synchronization
bgp log-neighbor-changes
network 172.16.1.0 mask 255.255.255.0
neighbor 172.16.1.2 remote-as 4
neighbor 192.168.2.1 remote-as 1
no auto-summary
!
ip http server
!
!
ip nat inside source static 192.168.2.1 172.16.1.1
+R3
interface Serial0/0
ip address 192.168.1.2 255.255.255.0
serial restart-delay 0
!
interface Serial0/2
ip address 181.1.1.1 255.255.255.0
serial restart-delay 0
!
router bgp 3
no synchronization
bgp log-neighbor-changes
network 181.1.1.0 mask 255.255.255.0
network 192.168.1.0
neighbor 181.1.1.2 remote-as 5
neighbor 192.168.1.1 remote-as 1
no auto-summary
+R4
interface Serial0/0
ip address 172.16.1.2 255.255.255.0
serial restart-delay 0
!
interface Serial0/1
ip address 180.1.1.1 255.255.255.0
serial restart-delay 0
router bgp 4
no synchronization
bgp log-neighbor-changes
network 172.16.1.0 mask 255.255.255.0
network 180.1.1.0 mask 255.255.255.0
neighbor 172.16.1.1 remote-as 1
neighbor 180.1.1.2 remote-as 5
no auto-summary
+R5
interface Serial0/0
ip address 181.1.1.2 255.255.255.0
serial restart-delay 0
!
interface Serial0/1
ip address 180.1.1.2 255.255.255.0
serial restart-delay 0
router bgp 5
no synchronization
bgp log-neighbor-changes
network 180.1.1.0 mask 255.255.255.0
network 181.1.1.0 mask 255.255.255.0
neighbor 180.1.1.1 remote-as 4
neighbor 181.1.1.1 remote-as 3
no auto-summary
Với config như trên e nghĩ rằng từ R4 ko thể ping đc tới địa chỉ 192.168.1.1 vì trong bảng bgp nó chỉ đường đi tới đó thông qua R10.Nhưng khi thực hiện lệnh ping thì lại thành công,trong khi ping tới 192.168.2.1 thì ko đc ,Và khi traceroute thì nó ra như thế này:
Router#traceroute 192.168.1.1
Type escape sequence to abort.
Tracing the route to 192.168.1.1
1 172.16.1.1 72 msec 92 msec 56 msec
2 192.168.2.1 60 msec 124 msec *
Mong các anh chị giải thích hộ em ạ!Cám ơn!http://vnpro.org/forum/images/icons/icon10.png
http://vnpro.org/forum/attachment.php?attachmentid=2639&d=1279911460&thumb=1 (http://vnpro.org/forum/attachment.php?attachmentid=2639&d=1279911460)
Và đây là config:
+R9:
interface Serial0/0
ip address 192.168.1.1 255.255.255.0
ip nat outside
!
interface Serial0/1
ip address 192.168.2.1 255.255.255.0
ip nat inside
router bgp 1
no synchronization
bgp log-neighbor-changes
network 192.168.1.0
neighbor 192.168.1.2 remote-as 3
neighbor 192.168.2.2 remote-as 1
no auto-summary
!
ip http server
!
!
ip nat inside source static 192.168.2.2 192.168.1.1
+R10:
interface Serial0/0
ip address 172.16.1.1 255.255.255.0
ip nat outside
!
interface Serial0/1
ip address 192.168.2.2 255.255.255.0
ip nat inside
router bgp 1
no synchronization
bgp log-neighbor-changes
network 172.16.1.0 mask 255.255.255.0
neighbor 172.16.1.2 remote-as 4
neighbor 192.168.2.1 remote-as 1
no auto-summary
!
ip http server
!
!
ip nat inside source static 192.168.2.1 172.16.1.1
+R3
interface Serial0/0
ip address 192.168.1.2 255.255.255.0
serial restart-delay 0
!
interface Serial0/2
ip address 181.1.1.1 255.255.255.0
serial restart-delay 0
!
router bgp 3
no synchronization
bgp log-neighbor-changes
network 181.1.1.0 mask 255.255.255.0
network 192.168.1.0
neighbor 181.1.1.2 remote-as 5
neighbor 192.168.1.1 remote-as 1
no auto-summary
+R4
interface Serial0/0
ip address 172.16.1.2 255.255.255.0
serial restart-delay 0
!
interface Serial0/1
ip address 180.1.1.1 255.255.255.0
serial restart-delay 0
router bgp 4
no synchronization
bgp log-neighbor-changes
network 172.16.1.0 mask 255.255.255.0
network 180.1.1.0 mask 255.255.255.0
neighbor 172.16.1.1 remote-as 1
neighbor 180.1.1.2 remote-as 5
no auto-summary
+R5
interface Serial0/0
ip address 181.1.1.2 255.255.255.0
serial restart-delay 0
!
interface Serial0/1
ip address 180.1.1.2 255.255.255.0
serial restart-delay 0
router bgp 5
no synchronization
bgp log-neighbor-changes
network 180.1.1.0 mask 255.255.255.0
network 181.1.1.0 mask 255.255.255.0
neighbor 180.1.1.1 remote-as 4
neighbor 181.1.1.1 remote-as 3
no auto-summary
Với config như trên e nghĩ rằng từ R4 ko thể ping đc tới địa chỉ 192.168.1.1 vì trong bảng bgp nó chỉ đường đi tới đó thông qua R10.Nhưng khi thực hiện lệnh ping thì lại thành công,trong khi ping tới 192.168.2.1 thì ko đc ,Và khi traceroute thì nó ra như thế này:
Router#traceroute 192.168.1.1
Type escape sequence to abort.
Tracing the route to 192.168.1.1
1 172.16.1.1 72 msec 92 msec 56 msec
2 192.168.2.1 60 msec 124 msec *
Mong các anh chị giải thích hộ em ạ!Cám ơn!http://vnpro.org/forum/images/icons/icon10.png