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.

Lab : Cấu hình mạng sử dụng bgp cc và eigrp soo

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

  • Lab : Cấu hình mạng sử dụng bgp cc và eigrp soo






    Cấu hình

    Router P1-AS1

    Building configuration...

    Current configuration : 970 bytes

    !

    version 12.2

    service timestamps debug datetime msec

    service timestamps log datetime msec

    no service password-encryption

    !

    hostname P1-AS1

    !

    logging queue-limit 100

    !

    ip subnet-zero

    !

    ip cef

    mpls ldp logging neighbor-changes

    !

    interface Loopback0

    ip address 10.10.10.200 255.255.255.255

    !

    interface Serial0/0

    description Connected to PE1-AS1

    ip address 10.10.10.2 255.255.255.252

    tag-switching ip

    clockrate 64000

    !

    interface Serial0/1

    description Connected to PE2-AS1

    ip address 10.10.10.6 255.255.255.252

    tag-switching ip

    !

    router ospf 1

    log-adjacency-changes

    network 10.0.0.0 0.255.255.255 area 0

    !

    ip http server

    ip classless

    !

    end

    Router PE1-AS1

    Building configuration...

    Current configuration : 2084 bytes

    !

    version 12.2

    service timestamps debug datetime msec

    service timestamps log datetime msec

    no service password-encryption

    !

    hostname PE1-AS1

    !

    ip subnet-zero

    !

    ip vrf CustomerA

    rd 1:100

    route-target export 1:100

    route-target import 1:100

    !

    ip cef

    mpls ldp logging neighbor-changes

    !

    interface Loopback0

    ip address 10.10.10.101 255.255.255.255

    !

    interface Serial0/0

    description Connected to P1-AS1

    ip address 10.10.10.1 255.255.255.252

    tag-switching ip

    no fair-queue

    !

    interface Serial1/1

    description Connected to CE1-A

    ip vrf forwarding CustomerA

    ip address 172.16.1.1 255.255.255.252

    clockrate 64000

    !

    interface Serial1/3

    description Connected to CE3-A

    ip vrf forwarding CustomerA

    ip vrf sitemap SOO-VPNA

    ip address 172.16.3.1 255.255.255.252

    clockrate 64000

    !

    router eigrp 1

    auto-summary

    !

    address-family ipv4 vrf CustomerA

    redistribute bgp 1 metric 1000 100 255 1 1500

    network 172.16.0.0

    no auto-summary

    autonomous-system 101

    exit-address-family

    !

    router ospf 1

    router-id 10.10.10.101

    log-adjacency-changes

    network 10.0.0.0 0.255.255.255 area 0

    !

    router bgp 1

    no synchronization

    bgp log-neighbor-changes

    neighbor 10.10.10.102 remote-as 1

    neighbor 10.10.10.102 update-source Loopback0

    no auto-summary

    !

    address-family vpnv4

    neighbor 10.10.10.102 activate

    neighbor 10.10.10.102 send-community both

    no auto-summary

    exit-address-family

    !

    address-family ipv4 vrf CustomerA

    redistribute eigrp 101

    no auto-summary

    no synchronization

    exit-address-family

    !

    ip http server

    ip classless

    !

    route-map SOO-VPNA permit 10

    set extcommunity soo 1:10

    !

    call rsvp-sync

    !

    end

    Router PE2-AS1

    Building configuration...

    Current configuration : 2255 bytes

    !

    version 12.2

    service timestamps debug datetime msec

    service timestamps log datetime msec

    no service password-encryption

    !

    hostname PE2-AS1

    !

    logging queue-limit 100

    !

    memory-size iomem 10

    ip subnet-zero

    !

    ip vrf CustomerA

    rd 1:100

    route-target export 1:100

    route-target import 1:100

    !

    ip cef

    mpls ldp logging neighbor-changes

    !

    interface Loopback0

    ip address 10.10.10.102 255.255.255.255

    !

    interface Ethernet0/0

    no ip address

    shutdown

    half-duplex

    !

    interface Serial0/1

    description Connected to P1-AS1

    ip address 10.10.10.5 255.255.255.252

    tag-switching ip

    clockrate 64000

    !

    interface Serial1/2

    description Connected to CE2-A

    ip vrf forwarding CustomerA

    ip address 172.16.2.1 255.255.255.252

    !

    interface Serial1/4

    description Connected to CE4-A

    ip vrf forwarding CustomerA

    ip vrf sitemap SOO-VPNA

    ip address 172.16.4.1 255.255.255.252

    !

    router eigrp 1

    auto-summary

    !

    address-family ipv4 vrf CustomerA

    redistribute bgp 1 metric 1000 100 255 1 1500

    network 172.16.0.0

    no auto-summary

    autonomous-system 101

    exit-address-family

    !

    router ospf 1

    router-id 10.10.10.102

    log-adjacency-changes

    network 10.0.0.0 0.255.255.255 area 0

    !

    router bgp 1

    no synchronization

    bgp log-neighbor-changes

    neighbor 10.10.10.101 remote-as 1

    neighbor 10.10.10.101 update-source Loopback0

    no auto-summary

    !

    address-family vpnv4

    neighbor 10.10.10.101 activate

    neighbor 10.10.10.101 send-community both

    no auto-summary

    exit-address-family

    !

    address-family ipv4 vrf CustomerA

    redistribute eigrp 101

    no auto-summary

    no synchronization

    exit-address-family

    !

    ip http server

    ip classless

    !

    route-map SOO-VPNA permit 10

    set extcommunity soo 1:20

    !

    call rsvp-sync

    !

    end

    Router CE1-A

    Building configuration...

    Current configuration : 817 bytes

    !

    version 12.2

    service timestamps debug uptime

    service timestamps log uptime

    no service password-encryption

    !

    hostname CE1-A

    !

    logging queue-limit 100

    !

    ip subnet-zero

    !

    mpls ldp logging neighbor-changes

    !

    interface Ethernet0/0

    description VPN-A Site 1 network

    ip address 172.16.10.1 255.255.255.0

    half-duplex

    no keepalive

    !

    interface Serial0/0

    description Connected to PE1-AS1

    ip address 172.16.1.2 255.255.255.252

    !

    router eigrp 101

    network 172.16.0.0

    no auto-summary

    !

    no ip http server

    ip classless

    !

    call rsvp-sync

    !

    end

    Router CE2-A

    hostname CE2-A

    !

    memory-size iomem 10

    ip subnet-zero

    !

    interface Ethernet0/0

    description VPN-A Site 2 network

    ip address 172.16.20.1 255.255.255.0

    no keepalive

    half-duplex

    !

    interface Serial0/0

    description Connected to PE2-AS1

    ip address 172.16.2.2 255.255.255.252

    clockrate 64000

    !

    router eigrp 101

    network 172.16.0.0

    no auto-summary

    no eigrp log-neighbor-changes

    !

    ip classless

    ip http server

    !

    call rsvp-sync

    !

    end

    Router CE3-A

    Current configuration : 1034 bytes

    !

    version 12.2

    service timestamps debug uptime

    service timestamps log uptime

    no service password-encryption

    !

    hostname CE3-A

    !

    logging queue-limit 100

    !

    ip subnet-zero

    !

    no ip domain lookup

    !

    mpls ldp logging neighbor-changes

    !

    interface Ethernet0/0

    description VPN-A Site 3 network

    ip address 172.16.30.1 255.255.255.0

    half-duplex

    no keepalive

    !

    interface Serial0/0

    description Connected to PE1-AS1

    ip address 172.16.3.2 255.255.255.252

    no ip mroute-cache

    no fair-queue

    !

    interface Serial0/1

    description Connected to CE4-A

    bandwidth 1000

    ip vrf sitemap SOO-VPNA

    ip address 172.16.5.1 255.255.255.252

    clockrate 64000

    !

    router eigrp 101

    network 172.16.0.0

    no auto-summary

    !

    no ip http server

    ip classless

    !

    route-map SOO-VPNA permit 10

    set extcommunity soo 1:10

    !

    call rsvp-sync

    !

    end

    Router CE4-A

    Building configuration...

    Current configuration : 1061 bytes

    !

    version 12.2

    service timestamps debug datetime msec

    service timestamps log datetime msec

    no service password-encryption

    !

    hostname CE4-A

    !

    logging queue-limit 100

    !

    ip subnet-zero

    !

    mpls ldp logging neighbor-changes

    !

    interface Ethernet0/0

    description VPN-A Site 4 network

    ip address 172.16.40.1 255.255.255.0

    half-duplex

    no keepalive

    !

    interface Serial0/0

    description Connected to PE2-AS1

    ip address 172.16.4.2 255.255.255.252

    clockrate 64000

    no fair-queue

    !

    interface Serial0/1

    description Connected to CE3-A

    bandwidth 1000

    ip vrf sitemap SOO-VPNA

    ip address 172.16.5.2 255.255.255.252

    !

    router eigrp 101

    network 172.16.0.0

    no auto-summary

    !

    ip http server

    ip classless

    !

    route-map SOO-VPNA permit 10

    set extcommunity soo 1:200

    !

    call rsvp-sync

    !

    end

    Kiểm tra
    1. Kiểm tra đường đi

    CE1-A#traceroute 172.16.20.1

    Type escape sequence to abort.

    Tracing the route to 172.16.20.1



    1 172.16.1.1 16 msec 16 msec 16 msec

    2 172.16.3.2 28 msec 28 msec 28 msec

    3 172.16.5.2 44 msec 40 msec 44 msec

    4 172.16.4.1 56 msec 56 msec 56 msec

    5 172.16.2.2 68 msec 68 msec *

    CE1-A#traceroute 172.16.40.1

    Type escape sequence to abort.

    Tracing the route to 172.16.40.1



    1 172.16.1.1 16 msec 16 msec 16 msec

    2 172.16.3.2 28 msec 28 msec 28 msec

    3 172.16.5.2 80 msec 40 msec *

    CE3-A#traceroute 172.16.20.1

    Type escape sequence to abort.

    Tracing the route to 172.16.20.1



    1 172.16.5.2 16 msec 16 msec 16 msec

    2 172.16.4.1 28 msec 28 msec 28 msec

    3 172.16.2.2 45 msec * 41 msec

    CE3-A#traceroute 172.16.40.1

    Type escape sequence to abort.

    Tracing the route to 172.16.40.1

    1 172.16.5.2 16 msec * 13 msec
    1. Kiểm tra các thuộc tính BGP extended community

    PE1-AS1#show ip bgp vpnv4 vrf CustomerA 172.16.20.1

    BGP routing table entry for 1:100:172.16.20.0/24, version 19

    Paths: (2 available, best #2, table CustomerA)

    Advertised to non peer-group peers:

    10.10.10.102

    Local

    10.10.10.102 (metric 129) from 10.10.10.102 (10.10.10.102)

    Origin incomplete, metric 20537600, localpref 100, valid, internal

    Extended Community: RT:1:100 0x8800:32768:0 0x8801:101:537600 0x8802:32769:20000000 0x8803:32769:1500

    Local

    172.16.3.2 from 0.0.0.0 (10.10.10.101)

    Origin incomplete, metric 22073600, localpref 100, weight 32768, valid, sourced, best

    Extended Community: SoO:1:10 RT:1:100 0x8800:32768:0 0x8801:101:2073600 0x8802:32772:20000000 0x8803:32769:1500

    PE1-AS1#show ip bgp vpnv4 vrf CustomerA 172.16.40.1

    BGP routing table entry for 1:100:172.16.40.0/24, version 13

    Paths: (2 available, best #2, table CustomerA)

    Advertised to non peer-group peers:

    10.10.10.102

    Local

    10.10.10.102 (metric 129) from 10.10.10.102 (10.10.10.102)

    Origin incomplete, metric 20537600, localpref 100, valid, internal

    Extended Community: SoO:1:20 RT:1:100 0x8800:32768:0 0x8801:101:537600 0x8802:61697:20000000 0x8803:61697:1500

    Local

    172.16.3.2 from 0.0.0.0 (10.10.10.101)

    Origin incomplete, metric 21049600, localpref 100, weight 32768, valid, sourced, best

    Extended Community: SoO:1:10 RT:1:100 0x8800:32768:0 0x8801:101:1049600 0x8802:61698:20000000 0x8803:61697:1500

    PE2-AS1#show ip bgp vpnv4 vrf CustomerA 172.16.10.0

    BGP routing table entry for 1:100:172.16.10.0/24, version 16

    Paths: (2 available, best #2, table CustomerA)

    Advertised to non peer-group peers:

    10.10.10.101

    Local

    10.10.10.101 (metric 129) from 10.10.10.101 (10.10.10.101)

    Origin incomplete, metric 20537600, localpref 100, valid, internal

    Extended Community: RT:1:100 0x8800:32768:0 0x8801:101:537600 0x8802:32769:20000000 0x8803:32769:1500

    Local

    172.16.4.2 from 0.0.0.0 (10.10.10.102)

    Origin incomplete, metric 22073600, localpref 100, weight 32768, valid, sourced, best

    Extended Community: SoO:1:20 RT:1:100 0x8800:32768:0 0x8801:101:2073600 0x8802:32772:20000000 0x8803:32769:1500

    PE2-AS1#show ip bgp vpnv4 vrf CustomerA 172.16.30.0

    BGP routing table entry for 1:100:172.16.30.0/24, version 18

    Paths: (2 available, best #2, table CustomerA)

    Advertised to non peer-group peers:

    10.10.10.101

    Local

    10.10.10.101 (metric 129) from 10.10.10.101 (10.10.10.101)

    Origin incomplete, metric 20537600, localpref 100, valid, internal

    Extended Community: SoO:1:10 RT:1:100 0x8800:32768:0 0x8801:101:537600 0x8802:32769:20000000 0x8803:32769:1500

    Local

    172.16.4.2 from 0.0.0.0 (10.10.10.102)

    Origin incomplete, metric 21049600, localpref 100, weight 32768, valid, sourced, best

    Extended Community: SoO:1:20 RT:1:100 0x8800:32768:0 0x8801:101:1049600 0x8802:32770:20000000 0x8803:32769:1500
    1. Kiểm tra bảng định tuyến

    CE3-A#show ip route eigrp

    172.16.0.0/16 is variably subnetted, 9 subnets, 2 masks

    D 172.16.40.0/24 [90/3097600] via 172.16.5.2, 00:45:57, Serial0/1

    D 172.16.20.0/24 [90/21561600] via 172.16.5.2, 00:28:44, Serial0/1

    D 172.16.10.0/24 [90/21049600] via 172.16.3.1, 00:37:54, Serial0/0

    D 172.16.4.0/30 [90/3584000] via 172.16.5.2, 00:29:46, Serial0/1

    D 172.16.1.0/30 [90/21024000] via 172.16.3.1, 00:37:56, Serial0/0

    D 172.16.2.0/30 [90/21536000] via 172.16.5.2, 00:28:47, Serial0/1

    CE4-A#show ip route eigrp

    172.16.0.0/16 is variably subnetted, 9 subnets, 2 masks

    D 172.16.30.0/24 [90/3097600] via 172.16.5.1, 00:49:26, Serial0/1

    D 172.16.20.0/24 [90/21049600] via 172.16.4.1, 00:32:12, Serial0/0

    D 172.16.10.0/24 [90/21561600] via 172.16.5.1, 00:41:22, Serial0/1

    D 172.16.1.0/30 [90/21536000] via 172.16.5.1, 00:41:25, Serial0/1

    D 172.16.2.0/30 [90/21024000] via 172.16.4.1, 00:32:15, Serial0/0

    D 172.16.3.0/30 [90/3584000] via 172.16.5.1, 00:42:40, Serial0/1
    Email : vnpro@vnpro.org
    ---------------------------------------------------------------------------------------------------------------
    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
Working...
X