no auto-summary
exit-address-family
router bgp 6500 ──-配置BGP协议
no synchronization
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 192.168.168.2 remote-as 6500 ──-和PE2建立邻居关系
neighbor 192.168.168.2 update-source Loopback0
no auto-summary !
address-family ipv4 vrf Red ────为VPN用户配置IPv4地址家族,使
redistribute rip metric 1 VRF Red 所管辖的路由表中的路由从新发布到BGP中去。 no auto-summary
no synchronization
exit-address-family !
address-family vpnv4 ────具体配置和PE2的关系,使PE3和PE2之间能交换VPNv4路由 neighbor 192.168.168.2 activate
neighbor 192.168.168.2 send-community both
no auto-summary
exit-address-family
interface Ethernet0/1 ────-配置连接CE3的接口
ip vrf forwarding Red ────-使该接口和前面定义的VRF Red联系起来
ip address 192.168.1.17 255.255.255.252
interface Ethernet0/0 ──-配置联系到7206上接口
ip address 192.168.1.10 255.255.255.252
half-duplex
tag-switching ip ──-在该接口上启用标签交换 !

