思路:
1、将IBGP的内部路由tcp联通,建议使用ISIS协议
isis xxx //xxx进程号
is-level level-2
network-entity 49.0001.0010.0100.1001.00
2、将MPLS配置完成,使用LDP
全局模式
mpls lsr-id x.x.x.x
mpls
mpls LDP
接口模式
mpls
mpls LDP
3、常见实例VRF
ip vpn-instance XYZ
ipv4-family
route-distinguisher 4:1 //RD,路由区分付,vpnv4的地址为:rd+ip地址
vpn-target 4:1 export-extcommunity //RT
vpn-target 4:1 5:3 import-extcommunity //RT
4、将实例与接口绑定
interface GigabitEthernet0/0/0
ip binding vpn-instance XYZ
ip address 192.168.1.1 255.255.255.0
5、配置mp-bgp
bgp 200
router-id 1.1.1.1
undo default ipv4-unicast
peer 3.3.3.3 as-number 200
peer 3.3.3.3 connect-interface LoopBack0
#
ipv4-family unicast
undo synchronization
undo peer 3.3.3.3 enable
#
ipv4-family vpnv4
policy vpn-target
peer 3.3.3.3 enable
#
ipv4-family vpn-instance XYZ
//ipv4-family vpn-instance vpn-instance-name // 将指定的VPN实例与IPv4地址族进行关联,并进入BGP-VPN实例IPv4地址族视图。
import-route static
6、配置静态路由
PE:
ip route-static vpn-instance XYZ 4.4.4.4 255.255.255.255 GigabitEthernet0/0/0 19
2.168.1.14
CE:
ip route-static 0.0.0.0 0.0.0.0 GigabitEthernet0/0/0 192.168.1.1