- CE与PE之间运行普通的路由协议:RIP、OSPF、ISIS、EBGP
- PE与PE之间运行OSPF作为底层协议,MBGP承载MPLS VPN路由,标签分发协议采用LDP
配置文件如下:
set logical-routers r1 interfaces fxp1 unit 12 disable set logical-routers r1 interfaces fxp1 unit 12 vlan-id 12 set logical-routers r1 interfaces fxp1 unit 13 vlan-id 13
set logical-routers r1 interfaces fxp1 unit 13 family inet address 10.0.4.13/30 set logical-routers r1 interfaces fxp1 unit 55 disable set logical-routers r1 interfaces fxp1 unit 55 vlan-id 55
set logical-routers r1 interfaces lo0 unit 1 family inet address 10.0.6.1/32 set logical-routers r1 protocols rip group -a export direct set logical-routers r1 protocols rip group -a neighbor lo0.1 set logical-routers r1 protocols rip group -a neighbor fxp1.13
set logical-routers r1 policy-options policy-statement direct term 1 from protocol direct
set logical-routers r1 policy-options policy-statement direct term 1 then accept set logical-routers r2 interfaces fxp2 unit 12 disable set logical-routers r2 interfaces fxp2 unit 12 vlan-id 12 set logical-routers r2 interfaces fxp2 unit 23 disable
set logical-routers r2 interfaces fxp2 unit 23 vlan-id 23 set logical-routers r2 interfaces fxp2 unit 24 vlan-id 24
set logical-routers r2 interfaces fxp2 unit 24 family inet address 10.0.4.9/30 set logical-routers r2 interfaces fxp2 unit 55 disable set logical-routers r2 interfaces fxp2 unit 55 vlan-id 55
set logical-routers r2 interfaces lo0 unit 2 family inet address 10.0.6.2/32 set logical-routers r2 protocols ospf area 0.0.0.1 interface fxp2.24 set logical-routers r3 interfaces fxp1 unit 23 disable set logical-routers r3 interfaces fxp1 unit 23 vlan-id 23 set logical-routers r3 interfaces fxp1 unit 34 vlan-id 34
set logical-routers r3 interfaces fxp1 unit 34 family inet address 10.0.2.5/30 set logical-routers r3 interfaces fxp1 unit 34 family mpls set logical-routers r3 interfaces fxp1 unit 35 vlan-id 35
set logical-routers r3 interfaces fxp1 unit 35 family inet address 10.0.2.1/30 set logical-routers r3 interfaces fxp1 unit 35 family mpls set logical-routers r3 interfaces fxp2 unit 13 vlan-id 13
set logical-routers r3 interfaces fxp2 unit 13 family inet address 10.0.4.14/30 set logical-routers r3 interfaces lo0 unit 3 family inet address 10.0.3.3/32 set logical-routers r3 protocols mpls interface fxp1.34
set logical-routers r3 protocols mpls interface fxp1.35 set logical-routers r3 protocols bgp group mpls type internal set logical-routers r3 protocols bgp group mpls local-address 10.0.3.3 set logical-routers r3 protocols bgp group mpls family inet- unicast set logical-routers r3 protocols bgp group mpls neighbor 10.0.3.4 peer-as 1 set logical-routers r3 protocols bgp group mpls neighbor 10.0.3.5 peer-as 1 set logical-routers r3 protocols ospf area 0.0.0.0 interface fxp1.34 set logical-routers r3 protocols ospf area 0.0.0.0 interface fxp1.35 set logical-routers r3 protocols ospf area 0.0.0.0 interface lo0.3 passive set logical-routers r3 protocols ldp interface fxp1.34 set logical-routers r3 protocols ldp interface fxp1.35
set logical-routers r3 policy-options policy-statement bgp-rip term 1 from protocol bgp
set logical-routers r3 policy-options policy-statement bgp-rip term 1 then accept set logical-routers r3 routing-instances -a instance-type vrf set logical-routers r3 routing-instances -a interface fxp2.13 set logical-routers r3 routing-instances -a route-distinguisher 1:1 set logical-routers r3 routing-instances -a vrf-target target:1:1 set logical-routers r3 routing-instances -a vrf-table-label
set logical-routers r3 routing-instances -a protocols rip group -a export bgp-rip
set logical-routers r3 routing-instances -a protocols rip group -a neighbor fxp2.13
set logical-routers r3 routing-options autonomous-system 1 set logical-routers r4 interfaces fxp1 unit 24 vlan-id 24
set logical-routers r4 interfaces fxp1 unit 24 family inet address 10.0.4.10/30 set logical-routers r4 interfaces fxp1 unit 45 vlan-id 45
set logical-routers r4 interfaces fxp1 unit 45 family inet address 10.0.2.9/30 set logical-routers r4 interfaces fxp1 unit 45 family mpls set logical-routers r4 interfaces fxp2 unit 34 vlan-id 34
set logical-routers r4 interfaces fxp2 unit 34 family inet address 10.0.2.6/30 set logical-routers r4 interfaces fxp2 unit 34 family mpls
set logical-routers r4 interfaces lo0 unit 4 family inet address 10.0.3.4/32 set logical-routers r4 protocols mpls interface fxp2.34 set logical-routers r4 protocols mpls interface fxp1.45 set logical-routers r4 protocols bgp group mpls type internal set logical-routers r4 protocols bgp group mpls local-address 10.0.3.4 set logical-routers r4 protocols bgp group mpls family inet- unicast
set logical-routers r4 protocols bgp group mpls neighbor 10.0.3.3 peer-as 1 set logical-routers r4 protocols bgp group mpls neighbor 10.0.3.5 peer-as 1 set logical-routers r4 protocols ospf area 0.0.0.0 interface fxp2.34 set logical-routers r4 protocols ospf area 0.0.0.0 interface fxp1.45 set logical-routers r4 protocols ospf area 0.0.0.0 interface lo0.4 passive set logical-routers r4 protocols ldp interface fxp1.45 set logical-routers r4 protocols ldp interface fxp2.34
set logical-routers r4 policy-options policy-statement ibgp-ospf from protocol bgp
set logical-routers r4 policy-options policy-statement ibgp-ospf then accept set logical-routers r4 routing-instances -b instance-type vrf set logical-routers r4 routing-instances -b interface fxp1.24 set logical-routers r4 routing-instances -b route-distinguisher 2:2 set logical-routers r4 routing-instances -b vrf-target target:2:2 set logical-routers r4 routing-instances -b vrf-table-label
set logical-routers r4 routing-instances -b protocols ospf export ibgp-ospf set logical-routers r4 routing-instances -b protocols ospf area 0.0.0.1 interface fxp1.24
set logical-routers r4 routing-options autonomous-system 1
set logical-routers r5 interfaces fxp1 unit 56 vlan-id 56
set logical-routers r5 interfaces fxp1 unit 56 family inet address 10.0.8.5/30 set logical-routers r5 interfaces fxp1 unit 57 vlan-id 57
set logical-routers r5 interfaces fxp1 unit 57 family inet address 10.0.8.9/30 set logical-routers r5 interfaces fxp1 unit 57 family iso address 49.0001.1111.1111.1111.00
set logical-routers r5 interfaces fxp2 unit 35 vlan-id 35
set logical-routers r5 interfaces fxp2 unit 35 family inet address 10.0.2.2/30 set logical-routers r5 interfaces fxp2 unit 35 family mpls set logical-routers r5 interfaces fxp2 unit 45 vlan-id 45
set logical-routers r5 interfaces fxp2 unit 45 family inet address 10.0.2.10/30 set logical-routers r5 interfaces fxp2 unit 45 family mpls
set logical-routers r5 interfaces lo0 unit 5 family inet address 10.0.3.5/32 set logical-routers r5 protocols mpls interface fxp2.35 set logical-routers r5 protocols mpls interface fxp2.45 set logical-routers r5 protocols bgp group mpls type internal set logical-routers r5 protocols bgp group mpls local-address 10.0.3.5 set logical-routers r5 protocols bgp group mpls family inet- unicast set logical-routers r5 protocols bgp group mpls neighbor 10.0.3.3 peer-as 1
set logical-routers r5 protocols bgp group mpls neighbor 10.0.3.4 peer-as 1 set logical-routers r5 protocols ospf area 0.0.0.0 interface fxp2.35 set logical-routers r5 protocols ospf area 0.0.0.0 interface fxp2.45 set logical-routers r5 protocols ospf area 0.0.0.0 interface lo0.5 passive set logical-routers r5 protocols ldp interface fxp2.35 set logical-routers r5 protocols ldp interface fxp2.45
set logical-routers r5 policy-options policy-statement ibgp-isis term 1 from protocol bgp
set logical-routers r5 policy-options policy-statement ibgp-isis term 1 then accept set logical-routers r5 routing-instances -a instance-type vrf set logical-routers r5 routing-instances -a interface fxp1.56 set logical-routers r5 routing-instances -a route-distinguisher 1:1 set logical-routers r5 routing-instances -a vrf-target target:1:1 set logical-routers r5 routing-instances -a vrf-table-label
set logical-routers r5 routing-instances -a protocols bgp group -a type external
set logical-routers r5 routing-instances -a protocols bgp group -a neighbor 10.0.8.6 peer-as 9394
set logical-routers r5 routing-instances -b instance-type vrf set logical-routers r5 routing-instances -b interface fxp1.57
set logical-routers r5 routing-instances -b route-distinguisher 2:2 set logical-routers r5 routing-instances -b vrf-target target:2:2 set logical-routers r5 routing-instances -b vrf-table-label
set logical-routers r5 routing-instances -b protocols isis export ibgp-isis set logical-routers r5 routing-instances -b protocols isis interface fxp1.57 set logical-routers r5 routing-options autonomous-system 1 set logical-routers r6 interfaces fxp1 unit 60 disable set logical-routers r6 interfaces fxp1 unit 60 vlan-id 60 set logical-routers r6 interfaces fxp2 unit 56 vlan-id 56
set logical-routers r6 interfaces fxp2 unit 56 family inet address 10.0.8.6/30 set logical-routers r6 interfaces fxp2 unit 67 disable set logical-routers r6 interfaces fxp2 unit 67 vlan-id 67
set logical-routers r6 interfaces lo0 unit 6 family inet address 10.0.9.6/32 set logical-routers r6 protocols bgp group -a type external set logical-routers r6 protocols bgp group -a export direct
set logical-routers r6 protocols bgp group -a neighbor 10.0.8.5 peer-as 1 set logical-routers r6 policy-options policy-statement direct term 1 from protocol direct
set logical-routers r6 policy-options policy-statement direct term 1 then accept
set logical-routers r6 routing-options autonomous-system 9394 set logical-routers r7 interfaces fxp1 unit 67 disable set logical-routers r7 interfaces fxp1 unit 67 vlan-id 67 set logical-routers r7 interfaces fxp1 unit 70 disable set logical-routers r7 interfaces fxp1 unit 70 vlan-id 70 set logical-routers r7 interfaces fxp2 unit 57 vlan-id 57
set logical-routers r7 interfaces fxp2 unit 57 family inet address 10.0.8.10/30 set logical-routers r7 interfaces fxp2 unit 57 family iso
set logical-routers r7 interfaces lo0 unit 7 family inet address 10.0.9.7/32 set logical-routers r7 interfaces lo0 unit 7 family iso address 49.0001.2222.2222.2222.00
set logical-routers r7 protocols isis level 2 disable set logical-routers r7 protocols isis interface fxp2.57 set logical-routers r7 protocols isis interface lo0.7
因篇幅问题不能全部显示,请点此查看更多更全内容