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

Xin các giúp đỡ về bài lab VPN MPLS này..

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

  • Xin các giúp đỡ về bài lab VPN MPLS này..

    Mình có bài lab mô hình như thế này...


    Yêu cầu cấu hình VPN giữa R1-CE và R5-CE, R6-CE và R7-CE, giữa các CE và PE dùng giao thức EIGRP với AS khác nhau....

    - Các bước cấu hình :
    Cấu hình OSPF cho các router PE-P-PE (gọi là nhà cung cấp)
    Cấu hình MPLS cho các router PE-P-PE
    Cấu hình VPN cho các router PE
    Cấu hình BGP cho các router PE
    Cấu hình EIRGP cho các router PE và CE

    Phần cấu hình :
    R1-CE:
    Code:
    en
    conf ter
    host R1-CE1
    
    int lo0
    	ip add 1.1.1.1 255.255.255.0
    int f1/0
    	ip add 192.168.12.1 255.255.255.0
    	no shut
    	exit
    router eigrp 101
    	net 1.0.0.0
    	net 192.168.12.0
    	no auto
    	end
    copy r s
    Router R2-PE:
    Code:
    en
    conf ter
    host R2-PE1
    ip cef
    ip vrf A
    	rd 15:15
    	ro ex 1:1
    	ro im 5:5
    ip vrf B
    	rd 67:67
    	ro ex 6:6
    	ro im 7:7
    	exit
    int lo0
    	ip add 2.2.2.2 255.255.255.255
    int f2/0
    	ip vrf for A
    	ip add 192.168.12.2 255.255.255.0
    	no shut
    	exit
    int f2/1
    	ip vrf forwarding B
     	ip add 192.168.26.2 255.255.255.0
    	no shut 
    	exit
    int s1/0
    	ip address 192.168.23.2 255.255.255.0
     	mpls label protocol ldp
     	mpls ip
    	no shut
    	exit
    router eigrp 1
    	add ipv4 vrf B
    		redistribute bgp 24 metric 1000 100 255 1 1500
    		network 192.168.26.0
      		no auto-summary
      		autonomous-system 201
     		exit-address-family
     	address-family ipv4 vrf A
      		redistribute bgp 24 metric 1000 100 255 1 1500
      		network 192.168.12.0
      		no auto-summary
      		autonomous-system 101
     		exit-address-family
    	exit
    router ospf 1
    	log-adjacency-changes
     	network 2.2.2.2 0.0.0.0 area 0
     	network 192.168.23.0 0.0.0.255 area 0
    	exit
    router bgp 24
     	neighbor 4.4.4.4 remote-as 24
     	neighbor 4.4.4.4 update-source Loopback0
     	no auto-summary
    	address-family vpnv4
      		neighbor 4.4.4.4 activate
      		neighbor 4.4.4.4 send-community extended
     		exit-address-family
    	address-family ipv4 vrf B
      		redistribute eigrp 201
      		no synchronization
     		exit-address-family
    	address-family ipv4 vrf A
      		redistribute eigrp 101
      		no synchronization
     		exit-address-family
    		end
    copy r s
    Router R3-P:
    Code:
    en
    conf ter
    host R3-P
    ip cef
    int s1/0
    	ip address 192.168.23.3 255.255.255.0
     	mpls label protocol ldp
     	mpls ip
    	exit
    int s1/1
    	ip address 192.168.34.3 255.255.255.0
     	mpls label protocol ldp
     	mpls ip
    	no shut
    	exit
    router ospf 1
     	network 192.168.23.0 0.0.0.255 area 0
     	network 192.168.34.0 0.0.0.255 area 0
    	end
    
    copy r s
    Router R4-PE:
    Code:
    en
    conf ter
    host R4-PE2
    ip cef
    ip vrf A
    	rd 15:15
    	ro ex 1:1
    	ro im 5:5
    ip vrf B
    	rd 67:67
    	ro ex 6:6
    	ro im 7:7
    	exit
    int lo0
    	ip add 4.4.4.4 255.255.255.255
    int f2/0
    	ip vrf for A
    	ip add 192.168.45.4 255.255.255.0
    	no shut
    	exit
    int f2/1
    	ip vrf forwarding B
     	ip add 192.168.47.4 255.255.255.0
    	no shut 
    	exit
    int s1/0
    	ip address 192.168.34.4 255.255.255.0
     	mpls label protocol ldp
     	mpls ip
     	serial restart-delay 0
    	exit
    router eigrp 1
    	add ipv4 vrf B
    		redistribute bgp 24 metric 1000 100 255 1 1500
    		network 192.168.47.0
      		no auto-summary
      		autonomous-system 202
     		exit-address-family
     	address-family ipv4 vrf A
      		redistribute bgp 24 metric 1000 100 255 1 1500
      		network 192.168.45.0
      		no auto-summary
      		autonomous-system 101
     		exit-address-family
    	exit
    router ospf 1
     	network 4.4.4.4 0.0.0.0 area 0
     	network 192.168.34.0 0.0.0.255 area 0
    	exit
    router bgp 24
     	neighbor 2.2.2.2 remote-as 24
     	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 B
      		redistribute eigrp 202
      		no synchronization
     		exit-address-family
    	address-family ipv4 vrf A
      		redistribute eigrp 101
      		no synchronization
     		exit-address-family
    		end
    copy r s
    Router R5-CE:
    Code:
    en
    conf ter
    host R5-CE2
    
    int lo0
    	ip add 5.5.5.5 255.255.255.0
    int f1/0
    	ip add 192.168.45.5 255.255.255.0
    	no shut
    	exit
    router eigrp 101
    	net 5.0.0.0
    	net 192.168.45.0
    	no auto
    	end
    copy r s
    Router R6-CE:
    Code:
    en
    conf ter
    host R6-CE3
    
    int lo0
    	ip add 6.6.6.6 255.255.255.0
    int f1/0
    	ip add 192.168.26.6 255.255.255.0
    	no shut
    	exit
    router eigrp 201
    	net 6.0.0.0
    	net 192.168.26.0
    	no auto
    	end
    copy r s
    Router R7-CE:
    Code:
    en
    conf ter
    host R7-CE4
    
    int lo0
    	ip add 7.7.7.7 255.255.255.0
    int f1/0
    	ip add 192.168.47.7 255.255.255.0
    	no shut
    	exit
    router eigrp 202
    	net 7.7.7.0
    	net 192.168.47.0
    	no auto
    	end
    copy r s

    ---> Vấn đề ở đây là sau khi cấu hình xong các router CE không học được các đường định tuyến bằng giao thức EIGRP nào ở trong mạng cả, cho dù mình đã redistribute EIGRP trong BGP và redis BGP trong EIGRP hết rùi :(:(... các pro gỡ rối giùm mình cái :)..

  • #2
    Nếu ở R2 PE:
    VRF A
    rt export 6:6
    rt import 7:7
    thì ở R4 PE:
    VRF A
    rt export 7:7
    rt import 6:6
    và làm như thế cho VRF còn lại

    Comment

    Working...
    X