mpls + bgp + isis +ospf+vrf_TCP

配置流程

1、配制TCP/IP网络为BGP打基础

isis 100 

network-entity 49.0001.0010.0100.1001.00 //49.0001区域号;0010.0100.1001系统号;00为net

cost-style wide

is-level level-2

应用到相关接口

interface gigabitethernet 0/0/0

isis enable 100

2、配置bgp

bgp 100

router-id  1.1.1.1

undo default ipv4-family unicast //关闭默认ipv4-family unicast

peer 对端ip as-number 100 //ibgpip

peer 对端ip connect-interface loopback 0

配置vpnv4

ipv4-family vpnv4

  policy vpn-target

 peer 3.3.3.3 enable

3、配置mpls

mpls lsr-id 1.1.1.1

mpls

mpls ldp

配置接口下

mpls

mpls ldp

4、配置vpn-instance ABC

ip vpn-instance ABC

 ipv4-family

 route-distinguisher 14:14

 vpn-target 14:14 export-extcommunity

 vpn-target 14:14 35:35 import-extcommunity

5、配置接口vpn-instance ABC

interface GigabitEthernet0/0/0

ip binding vpn-instance ABC

ip address 14.1.1.1 255.255.255.0 

6、配置vrf ospf

ospf 100 router-id 1.1.1.1 vpn-instance ABC

import-route bgp type 1 //将bgp路由插入ospf

area 0.0.0.0  

 network 1.1.1.1 0.0.0.0  

 network 14.1.1.0 0.0.0.255  

7、在BGP中调用 vpn-instance ABC  

 ipv4-family vpn-instance ABC  

 network 4.4.4.4 255.255.255.255 //宣告路由,也可以插入路由