• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
Xin chào ! Nếu đây là lần đầu tiên bạn đến với diễn đàn, xin vui lòng danh ra một phút bấm vào đây để đăng kí và tham gia thảo luận cùng VnPro.

Announcement

Collapse
No announcement yet.

Cần giúp đỡ BGP

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Cần giúp đỡ BGP

    Chào mọi người,
    Mình có 1 thắc mắc nhờ mọi người giúp đỡ. Xem hình bài Lab.

    Cấu hình như sau:
    Aspen#show run | begin router
    router bgp 300
    no synchronization
    bgp log-neighbor-changes
    neighbor 192.168.1.221 remote-as 100
    no auto-summary

    Vail#sho run | begin router
    router bgp 100
    no synchronization
    bgp log-neighbor-changes
    neighbor 192.168.1.222 remote-as 300
    neighbor 192.168.1.225 remote-as 200
    no auto-summary

    Taos#sho run | begin router
    router eigrp 200
    passive-interface Serial1/0
    network 192.168.1.0
    network 192.168.100.0
    auto-summary
    !
    router bgp 200
    no synchronization
    bgp log-neighbor-changes
    redistribute eigrp 200
    neighbor 192.168.1.226 remote-as 100
    no auto-summary

    AngelFire#sho run | begin router
    router eigrp 200
    network 192.168.1.0
    network 192.168.200.0
    auto-summary

    Theo mình hiểu thì để BGP router quảng bá IGP route đến eBGP peer thì phải distribute IGP route vào BGP hoặc dùng network command để quảng bá. Còn eBGP router sẽ quảng bá routes tự động cho các eBGP peer khác. Trong bài lab này thì router Taos quảng bá route 192.168.100.0 đến Vail và Vail quảng bá tiếp tục đến Aspen. Do vậy routing table của Aspen có network 192.168.100.0
    Aspen#sho ip route
    Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
    N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
    E1 - OSPF external type 1, E2 - OSPF external type 2
    i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
    ia - IS-IS inter area, * - candidate default, U - per-user static route
    o - ODR, P - periodic downloaded static route

    Gateway of last resort is not set

    B 192.168.200.0/24 [20/0] via 192.168.1.221, 01:56:24
    192.168.1.0/24 is variably subnetted, 4 subnets, 2 masks
    B 192.168.1.0/24 [20/0] via 192.168.1.221, 01:56:24
    B 192.168.1.224/30 [20/0] via 192.168.1.221, 01:56:24
    B 192.168.1.216/30 [20/0] via 192.168.1.221, 01:56:24
    C 192.168.1.220/30 is directly connected, Ethernet0/0
    B 192.168.100.0/24 [20/0] via 192.168.1.221, 01:56:24

    Aspen#sho ip bgp
    BGP table version is 6, local router ID is 192.168.1.222
    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
    *> 192.168.1.0 192.168.1.221 0 100 200 ?
    *> 192.168.1.216/30 192.168.1.221 0 100 200 ?
    *> 192.168.1.224/30 192.168.1.221 0 100 200 ?
    *> 192.168.100.0 192.168.1.221 0 100 200 ?
    *> 192.168.200.0 192.168.1.221 0 100 200 ?

    Tuy nhiên tại sao Vail lại không quảng bá network 192.168.1.220/30 đến Taos? Cần điều kiện gì để Vail quảng bá network này đến Taos ?
    Taos#sho ip route
    Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
    N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
    E1 - OSPF external type 1, E2 - OSPF external type 2
    i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
    ia - IS-IS inter area, * - candidate default, U - per-user static route
    o - ODR, P - periodic downloaded static route

    Gateway of last resort is not set

    D 192.168.200.0/24 [90/409600] via 192.168.1.217, 02:15:10, Ethernet0/0
    192.168.1.0/24 is variably subnetted, 3 subnets, 2 masks
    D 192.168.1.0/24 is a summary, 02:15:08, Null0
    C 192.168.1.224/30 is directly connected, Serial1/0
    C 192.168.1.216/30 is directly connected, Ethernet0/0
    C 192.168.100.0/24 is directly connected, Loopback0

    Taos#sho ip bgp
    BGP table version is 6, local router ID is 192.168.100.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
    *> 192.168.1.0 0.0.0.0 281600 32768 ?
    *> 192.168.1.216/30 0.0.0.0 0 32768 ?
    *> 192.168.1.224/30 0.0.0.0 0 32768 ?
    *> 192.168.100.0 0.0.0.0 0 32768 ?
    *> 192.168.200.0 192.168.1.217 409600 32768 ?

    Cảm ơn.
    Attached Files
    Last edited by rintrum; 10-10-2007, 03:59 PM.
    CCIE#24929 (SP)
    Networking Forum: http://netspace.vn/forum

  • #2
    Chào minhnguyenfr,

    Nếu mình thêm vào cấu hình của Vail câu lệnh quảng bá network 192.168.1.220 mask 255.255.255.252 thì Vail sẽ quảng bá network này đến Taos.
    Taos#sho ip bgp neighbors 192.168.1.226 routes
    BGP table version is 7, local router ID is 192.168.100.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
    *> 192.168.1.220/30 192.168.1.226 0 0 100 i

    Total number of prefixes 1
    Taos#sho ip route
    Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
    N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
    E1 - OSPF external type 1, E2 - OSPF external type 2
    i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
    ia - IS-IS inter area, * - candidate default, U - per-user static route
    o - ODR, P - periodic downloaded static route

    Gateway of last resort is not set

    D 192.168.200.0/24 [90/409600] via 192.168.1.217, 00:04:52, Ethernet0/0
    192.168.1.0/24 is variably subnetted, 4 subnets, 2 masks
    D 192.168.1.0/24 is a summary, 00:05:12, Null0
    C 192.168.1.224/30 is directly connected, Serial1/0
    C 192.168.1.216/30 is directly connected, Ethernet0/0
    B 192.168.1.220/30 [20/0] via 192.168.1.226, 00:00:50
    C 192.168.100.0/24 is directly connected, Loopback0

    Tuy nhiên theo mình hiểu thì eBGP sẽ tự động quảng bá route đến các eBGP khác mà không cần cấu hình network chứ nhỉ?
    Cảm ơn nhiều.
    Last edited by rintrum; 11-10-2007, 07:45 PM.
    CCIE#24929 (SP)
    Networking Forum: http://netspace.vn/forum

    Comment

    Working...
    X