配置流程
1)基础配置
int g0/0/0
ip address 14.1.1.4 24
int l0
ip address 4.4.4.4 32 //LDP也会建立邻居关系(默认使用环回口建立邻居。因此必须要环回口路由可达)
2)创建ibgp的tcp路由
isis 100//100为进程号
network-entity 49.0001.0010.0100.1001.00
cost-style wide
is-level level-2
3)ibgp中接口启用isis
int g0/0/0
isis enable 100 //100为进程号
4)启用mpls
mpls lsr-id 1.1.1.1
mpls
mpls ldp
5)配置bgp
bgp 100
route-id 1.1.1.1
undo default ipv4-unicast
peer 1.1.1.1 as-number 100
peer 1.1.1.1 connect-interface loopback 0
6)vpnv4配置
ipv4-family vpnv4
peer 3.3.3.3 enable
7)创建vrf(虚拟路由转发)
ip vpn-instance ABC
ipv4-family
route-distinguisher 14:14
vpn-target 14:14 export-extcommunity
vpn-target 14:14 35:35 import-extcommunity
8)绑定接口
interface GigabitEthernet0/0/0
ip binding vpn-instance ABC
ip address 14.1.1.1 255.255.255.0
9)ABC案例应用
ipv4-family vpn-instance ABC
peer 14.1.1.4 as-number 100