|
|

hostname r1
ip cef
ip vrf tes
rd 123:1
import map from-pe-r3
export map to-pe-r3
route-target export 123:1
route-target import 123:3
route-target import 123:65006
!
ip vrf test16
rd 123:65006
route-target export 123:65006
route-target import 123:65007
route-target import 123:1
interface Loopback0
ip address 10.1.1.1 255.255.255.0
!
interface Loopback2
ip vrf forwarding test
ip address 10.1.2.1 255.255.255.255
!
interface Ethernet0/0
ip vrf forwarding test
ip address 14.1.1.1 255.255.255.0
!
interface Serial0/0
no ip address
!
interface Serial0/0.12 point-to-point
ip address 12.1.1.1 255.255.255.0
ip router isis
mpls ip
frame-relay interface-dlci 102
!
interface Serial0/0.16 point-to-point
ip vrf forwarding test16
ip address 16.1.1.1 255.255.255.0
frame-relay interface-dlci 106
!
router ospf 1 vrf test
area 45 sham-link 10.1.2.1 30.1.2.1
redistribute bgp 13 subnets route-map ce5-only
network 14.1.1.0 0.0.0.255 area 45
!
router isis
net 49.0123.0000.0000.0001.00
passive-interface Loopback0
!
router bgp 13
no synchronization
bgp log-neighbor-changes
neighbor 30.1.1.1 remote-as 13
neighbor 30.1.1.1 update-source Loopback0
no auto-summary
!
address-family vpnv4
neighbor 30.1.1.1 activate
neighbor 30.1.1.1 send-community extended
exit-address-family
!
address-family ipv4 vrf test16
neighbor 16.1.1.6 remote-as 65006
neighbor 16.1.1.6 activate
neighbor 16.1.1.6 as-override
no auto-summary
no synchronization
exit-address-family
!
address-family ipv4 vrf test
redistribute connected route-map sham-loopback
redistribute ospf 1 vrf test
exit-address-family
ip prefix-list to65004 seq 5 deny 60.1.2.0/24
ip prefix-list to65004 seq 10 permit 0.0.0.0/0 le 32
access-list 10 permit 10.1.2.1
access-list 40 permit 40.1.1.0 0.0.0.255
access-list 41 permit 40.1.10.1
access-list 50 permit 10.1.2.1
access-list 50 permit 30.1.2.1
access-list 50 permit 35.1.1.0 0.0.0.255
access-list 60 deny 60.1.2.0 0.0.0.255
access-list 60 permit any
!
route-map ce5-only permit 10
match ip address 50
!
route-map to65004 permit 10
match ip address prefix-list to65004
!
route-map sham-loopback permit 10
match ip address 10
!
route-map from-pe-r3 permit 10
match ip address 60
!
route-map to-pe-r3 permit 10
match ip address 40
set extcommunity rt 123:65004
!
route-map ce1-ospf-to-bgp permit 10
match ip address 41
================================================== =================
hostname r2
ip cef
!
mpls label protocol ldp
interface Loopback0
ip address 20.1.1.1 255.255.255.0
interface Serial0/0
no ip address
encapsulation frame-relay
!
interface Serial0/0.12 point-to-point
ip address 12.1.1.2 255.255.255.0
ip router isis
mpls ip
frame-relay interface-dlci 201
!
interface Serial0/0.23 point-to-point
ip address 23.1.1.2 255.255.255.0
ip router isis
mpls ip
frame-relay interface-dlci 203
router isis
net 49.0123.0000.0000.0002.00
passive-interface Loopback0
================================================== ==============
hostname r3
ip cef
ip vrf test
rd 123:3
route-target export 123:3
route-target import 123:1
!
ip vrf test37
rd 123:65007
route-target export 123:65007
route-target import 123:65006
!
!
mpls label protocol ldp
interface Loopback0
ip address 30.1.1.1 255.255.255.0
!
interface Loopback2
ip vrf forwarding test
ip address 30.1.2.1 255.255.255.255
!
interface Serial0/0
no ip address
encapsulation frame-relay
no frame-relay inverse-arp
!
interface Serial0/0.23 point-to-point
ip address 23.1.1.3 255.255.255.0
ip router isis
mpls ip
frame-relay interface-dlci 302
interface Serial0/2
ip vrf forwarding test37
ip address 37.1.1.3 255.255.255.0
serial restart-delay 0
clock rate 19200
!
interface Ethernet1/0
ip vrf forwarding test
ip address 35.1.1.3 255.255.255.0
half-duplex
!
router ospf 1 vrf test
log-adjacency-changes
area 45 sham-link 30.1.2.1 10.1.2.1
redistribute bgp 13 subnets
network 35.1.1.0 0.0.0.255 area 45
!
router isis
net 49.0123.0000.0000.0003.00
passive-interface Loopback0
!
router bgp 13
no synchronization
bgp log-neighbor-changes
neighbor 10.1.1.1 remote-as 13
neighbor 10.1.1.1 update-source Loopback0
no auto-summary
!
address-family vpnv4
neighbor 10.1.1.1 activate
neighbor 10.1.1.1 send-community extended
exit-address-family
!
address-family ipv4 vrf test37
neighbor 37.1.1.7 remote-as 65006
neighbor 37.1.1.7 activate
neighbor 37.1.1.7 as-override
no auto-summary
no synchronization
exit-address-family
!
address-family ipv4 vrf test
redistribute connected route-map sham-loopback
redistribute ospf 1 vrf test match internal external 1 external 2
exit-address-family
access-list 30 permit 30.1.2.1
access-list 41 permit 40.1.10.1
access-list 42 deny 40.1.10.1
access-list 42 permit any
access-list 43 permit 40.1.10.1
access-list 43 permit 14.1.1.0 0.0.0.255
!
route-map ce4-only permit 10
match ip address 43
!
route-map sham-loopback permit 10
match ip address 30
!
route-map pe3-bgp-to-ce5 permit 10
match ip address 42
!
route-map pe3-bgp-to-ospf permit 10
match ip address 41
!
!
mpls ldp router-id Loopback0
================================================== ===============




添加到百度搜藏