interface GigabitEthernet8/2
ip address 218.2**.**.221 255.255.255.252
no ip directed-broadcast
negotiation auto
mpls label protocol ldp
tag-switching mtu 1526 // 这儿不必多说,仅仅留意这个MTU值
tag-switching ip
PE的装备 (7400) 这个不必多说了,装备了解多了 :) :)
ip vrf test
rd 100:100
route-target export 100:100
route-target import 100:100
!
ip cef
mpls label protocol ldp
!
!
interface GigabitEthernet0/0 //接GSR (P)
description *****
ip address 218.2**.**.*1 255.255.255.252
duplex full
speed auto
media-type gbic
negotiation auto
mpls label protocol ldp
tag-switching mtu 1526
tag-switching ip
!
interface GigabitEthernet0/1 //接客户的 (不过有点糟蹋哦,请看懂的兄弟指示一下。。。。:) : ) ip vrf forwarding test
ip address 192.168.1.1 255.255.255.252
duplex full
speed auto
media-type rj45
negotiation auto
!
!
router bgp 100 //在本网中做了2台BGP的 反射体,请留意和JUNIPER的不同之处
no synchronization
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 218.2**.**.2 remote-as 100
neighbor 218.2**.**.2 update-source Loopback0
neighbor 218.2**.**.3 remote-as 100
neighbor 218.2**.**.3 update-source Loopback0
no auto-summary
!
address-family ipv4 vrf test
redistribute connected
no auto-summary
no synchronization
exit-address-family
!
address-family vpnv4
neighbor 218.2**.**.2 activate
neighbor 218.2**.**.2 send-community extended
neighbor 218.2**.**.3 activate
neighbor 218.2**.**.3 send-community extended
no auto-summary
exit-address-family
!