• 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.

Không hiểu untagged va Aggregate, giúp với

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

  • Không hiểu untagged va Aggregate, giúp với

    Qui hoạch IP:
    (1)192.168.1.0/24
    (2)192.168.2.0/24
    (3)192.168.3.0/24
    (4)192.168.4.0/24
    (5)192.168.5.0/24
    (6)192.168.6.0/24
    (7)Lo0: 10.10.10.10/24
    (8)Lo0: 20.20.20.20/24
    (9)Lo0: 1.1.1.1/24
    (10)Lo0: 3.3.3.3/24
    (11)Lo0: 2.2.2.2/24
    (12)Lo0: 30.30.30.30/24
    (13)Lo0: 40.40.40.40/24

    1.Yêu cầu:
    ·Cấu hình MPLS domain giữa PE01 – P – PE02 (IGP = RIPv2)
    ·Cấu hình BGP AS 1 giữa PE01 và PE 02
    ·Trên PE01 tạo vrf A1 và B1 tương ứng với mỗi Router A1,B1
    ·Trên PE02 tạo vrf A2 và B2 tương ứng với mỗi Router A2,B2
    ·A1 – A2 – B1 – B2 chạy giao thức định tuyến EIGRP
    i.A1 : AS = 10
    ii.A2 : AS = 30
    iii.B1 : AS = 20
    iv.B2 : AS = 40

    2.Cấu hình:

    ROUTER A1:
    !
    hostname A1
    !
    no ip domain lookup
    !
    interface Loopback0
    ip address 10.10.10.10 255.255.255.0
    !
    interface FastEthernet0/0
    ip address 192.168.1.1 255.255.255.0
    !
    router eigrp 10
    network 10.0.0.0
    network 192.168.1.0
    no auto-summary
    !
    ip classless
    !
    ip http server
    End

    ROUTER B1:
    hostname B1
    !
    ip cef
    !
    no ip domain lookup
    !
    interface Loopback0
    ip address 20.20.20.20 255.255.255.0
    !
    interface Serial0/0
    ip address 192.168.2.1 255.255.255.0
    clock rate 2000000
    !
    interface FastEthernet0/1
    ip address 100.100.100.100 255.255.255.0
    no keepalive
    !
    !
    router eigrp 20
    network 20.0.0.0
    network 100.0.0.0
    network 192.168.2.0
    no auto-summary
    !
    ip classless
    !
    ip http server
    End

    ROUTER PE01:
    hostname PE01
    !
    !
    no ip domain lookup
    ip vrf A1
    rd 1:100
    route-target export 1:100
    route-target import 1:100
    !
    ip vrf B1
    rd 1:200
    route-target export 1:200
    route-target import 1:200
    !
    interface Loopback0
    ip address 1.1.1.1 255.255.255.0
    !
    interface FastEthernet0/0
    ip vrf forwarding A1
    ip address 192.168.1.2 255.255.255.0
    !
    interface Serial0/0
    ip vrf forwarding B1
    ip address 192.168.2.2 255.255.255.0
    clock rate 64000
    !
    interface FastEthernet0/1
    ip address 192.168.3.1 255.255.255.0
    mpls label protocol ldp
    tag-switching ip
    !
    !
    router eigrp 100
    auto-summary
    !
    address-family ipv4 vrf B1
    network 192.168.2.0
    no auto-summary
    autonomous-system 20
    exit-address-family
    !
    address-family ipv4 vrf A1
    network 192.168.1.0
    no auto-summary
    autonomous-system 10
    exit-address-family
    !
    router rip
    version 2
    network 1.0.0.0
    network 192.168.3.0
    no auto-summary
    !
    router bgp 1
    no synchronization
    bgp log-neighbor-changes
    neighbor 2.2.2.2 remote-as 1
    neighbor 2.2.2.2 update-source Loopback0
    no auto-summary
    !
    address-family vpnv4
    neighbor 2.2.2.2 activate
    neighbor 2.2.2.2 send-community extended
    exit-address-family
    !
    address-family ipv4 vrf B1
    redistribute eigrp 20
    no auto-summary
    no synchronization
    exit-address-family
    !
    address-family ipv4 vrf A1
    redistribute eigrp 10
    no auto-summary
    no synchronization
    exit-address-family
    !
    ip classless
    !
    ip http server
    no ip http secure-server
    !
    End

    ROUTER P:
    hostname P
    !
    !
    ip cef
    !
    interface Loopback0
    ip address 3.3.3.3 255.255.255.0
    !
    interface FastEthernet0/0
    ip address 192.168.3.2 255.255.255.0
    mpls label protocol ldp
    tag-switching ip
    !
    interface FastEthernet0/1
    ip address 192.168.4.1 255.255.255.0
    mpls label protocol ldp
    tag-switching ip
    !
    router rip
    version 2
    network 3.0.0.0
    network 192.168.3.0
    network 192.168.4.0
    no auto-summary
    !
    ip classless
    !
    ip http server
    End

    ROUTER PE02:
    !
    hostname PE02
    !
    ip cef
    !
    no ip domain lookup
    ip vrf A2
    rd 1:100
    route-target export 1:100
    route-target import 1:100
    !
    ip vrf B2
    rd 1:200
    route-target export 1:200
    route-target import 1:200
    !
    !
    interface Loopback0
    ip address 2.2.2.2 255.255.255.0
    !
    interface FastEthernet0/0
    ip address 192.168.4.2 255.255.255.0
    mpls label protocol ldp
    tag-switching ip
    !
    interface Serial0/0
    ip vrf forwarding A2
    ip address 192.168.5.1 255.255.255.0
    clock rate 64000
    !
    interface FastEthernet0/1
    ip vrf forwarding B2
    ip address 192.168.6.1 255.255.255.0
    duplex auto
    speed auto
    !
    router eigrp 100
    auto-summary
    !
    address-family ipv4 vrf B2
    redistribute bgp 1 metric 1000 100 100 100 100
    network 192.168.6.0
    auto-summary
    autonomous-system 40
    exit-address-family
    !
    address-family ipv4 vrf A2
    redistribute bgp 1 metric 1000 100 100 100 100
    network 192.168.5.0
    auto-summary
    autonomous-system 30
    exit-address-family
    !
    router rip
    version 2
    network 2.0.0.0
    network 192.168.4.0
    no auto-summary
    !
    router bgp 1
    no synchronization
    bgp log-neighbor-changes
    neighbor 1.1.1.1 remote-as 1
    neighbor 1.1.1.1 update-source Loopback0
    no auto-summary
    !
    address-family vpnv4
    neighbor 1.1.1.1 activate
    neighbor 1.1.1.1 send-community extended
    exit-address-family
    !
    address-family ipv4 vrf B2
    redistribute eigrp 40
    no auto-summary
    no synchronization
    exit-address-family
    !
    address-family ipv4 vrf A2
    redistribute eigrp 30
    no auto-summary
    no synchronization
    exit-address-family
    !
    ip classless
    !
    ip http server
    no ip http secure-server
    !
    !
    End

    ROUTER A2:
    !
    hostname A2
    !
    !
    !
    ip cef
    !
    no ip domain lookup
    ip audit po max-events 100
    !
    interface Loopback0
    ip address 30.30.30.30 255.255.255.0
    !
    interface Serial0/0
    ip address 192.168.5.2 255.255.255.0
    clock rate 2000000
    !
    !
    router eigrp 30
    network 30.0.0.0
    network 192.168.5.0
    no auto-summary
    !
    ip classless
    !
    ip http server
    no ip http secure-server
    !
    End

    ROUTER B2:
    !
    hostname B2
    !
    !
    no aaa new-model
    ip subnet-zero
    ip cef
    !
    !
    !
    no ip domain lookup
    ip audit po max-events 100
    !

    !
    interface Loopback0
    ip address 40.40.40.40 255.255.255.0
    !
    interface FastEthernet0/0
    ip address 192.168.6.2 255.255.255.0
    duplex auto
    speed auto
    !
    !
    router eigrp 40
    network 40.0.0.0
    network 192.168.6.0
    no auto-summary
    !
    ip classless
    !
    ip http server
    !
    End
    bái lap này em thấy ở phần CCIE


    khi chay cho ra bang LIFB
    PE01#show mpls forwarding-table
    Local Outgoing Prefix Bytes tag Outgoing Next Hop
    tag tag or VC or Tunnel Id switched interface
    16 16 2.2.2.0/24 0 Fa0/1 192.168.3.2
    17 Pop tag 3.3.3.0/24 0 Fa0/1 192.168.3.2
    18 Pop tag 192.168.4.0/24 0 Fa0/1 192.168.3.2
    19 Untagged 20.20.20.0/24[V] 0 Se0/0 point2point
    20 Untagged 100.100.100.0/24[V] \
    0 Se0/0 point2point
    21 Untagged 10.10.10.0/24[V] 0 Fa0/0 192.168.1.1
    22 Aggregate 192.168.1.0/24[V] 520
    23 Aggregate 192.168.2.0/24[V] 520
    em ko hiểu lắm về untagged va aggregate, theo em hiểu thi cột đầu chỉ nhạn nội, cột ngoài chỉ nhạn ngoai ko biết chínhxac ko? Ai biết chỉ cho em với, cần gấp lắm rồi , coi mãi cha hiểu được cơ chế, hix ai tôt bung tra lời cho em với
    Last edited by bekhatsua; 16-12-2009, 04:01 PM.

  • #2
    Theo em hiểu cơ chế hoạt động của nó là khi goi tin từ pe1 mốn tới 2.2.2.0 hti đóng nhãn 16 gui đi theo cổng Fa0/1
    va khi muốn tới 3.3.3.0 pop tag ?( rut nhãn) ko hiểu lắm phần này hix. nó rút htì con P làm sao ma hoán nhãn để chuyểntới pe2?

    Comment


    • #3
      Úp lên, ai giúp dùm em với sắp chết rồi, hix

      Comment


      • #4
        Úp úp nào, ai cho em biết ý nghĩa aggregate với, hix, untagged thi em hiểu rồi

        Comment


        • #5
          Chào bạn,

          Nhãn untagged bạn đã biết rồi thì không nói thêm.
          Còn nhãn aggregate: khi gói MPLS đến router A (router A có nhãn aggregate), thì router A sẽ bóc tất cả các nhãn trong gói tin MPLS đó để chỉ còn một gói IP. Router A tiếp tục thực hiện tra cứu trong bản FIB để xác định giao tiếp ngõ ra cho gói tin.
          Thường nhãn này sẽ là connected của interface có vrf được bật.
          Phạm Minh Tuấn

          Email : phamminhtuan@vnpro.org
          Yahoo : phamminhtuan_vnpro
          -----------------------------------------------------------------------------------------------
        Trung Tâm Tin Học VnPro
        149/1D Ung Văn Khiêm P25 Q.Bình thạnh TPHCM
        Tel : (08) 35124257 (5 lines)
        Fax: (08) 35124314

        Home page: http://www.vnpro.vn
        Support Forum: http://www.vnpro.org
        - Chuyên đào tạo quản trị mạng và hạ tầng Internet
        - Phát hành sách chuyên môn
        - Tư vấn và tuyển dụng nhân sự IT
        - Tư vấn thiết kế và hỗ trợ kỹ thuật hệ thống mạng

        Network channel: http://www.dancisco.com
        Blog: http://www.vnpro.org/blog

        Comment


        • #6
          hình này mình lấy trong MPLS vol 1 của cisco. Nhìn là hiểu liền à !





          Aggregate Labels
          Aggregate labels can be the result of aggregation or summarization of IP prefixes in the network.
          You can aggregate multiple IPv4 prefixes into one prefix with a smaller mask capturing all the
          component prefixes with longer masks. You can do this in an MPLS network, but it might not be
          a good idea. When the labeled packets arrive at the aggregation router, it removes the label and
          performs an IP lookup, and then it labels them again and forwards them. Do not aggregate on ATM
          LSRs for that reason. The aggregation label entails that the labeled packets must become unlabeled
          on the ATM LSR. For this to happen, the aggregating ATM LSR first reassembles the cells into a
          frame. When the aggregating ATM LSR forwards the packet by doing an IP lookup, it chops the
          frame into cells again. This is an expensive operation and has a serious performance impact. That
          is why you should always avoid aggregation on ATM LSRs.
          Last edited by hien3050; 24-12-2009, 06:33 PM.

          Comment

          • Working...
            X