Sei sulla pagina 1di 2

BASIC L3VPN

==================
MX240-R2006 10.219.34.220 (ge-1/2/0.300 [ PE1 ] xe-0/0/0.100 ----- 100.1.1.x
----- xe-0/0/1.100 [ PE2 ] ge-1/2/0.400)
PE1 101.101.101.101/32
PE2 102.102.102.102/32

M7i-R2005 10.219.37.82 (3.3.3.3 lo0.300 CE1 ge-0/1/3.300 ---- 12.1.1.x ------ ge-
1/2/0.300 PE1)
(4.4.4.4 lo0.400 CE1 ge-0/1/3.400 ---- 23.1.1.x ------ ge-
1/2/0.400 PE1)

CONFIG
===============
set interface xe-0/0/0 vlan-tagging
set interface xe-0/0/1 vlan-tagging
set interface ge-1/2/0 vlan-tagging

set logical-system PE1 interface xe-0/0/0 unit 100 vlan-id 100


set logical-system PE1 interface xe-0/0/0 unit 100 family inet address 100.1.1.1/24
set logical-system PE1 interface xe-0/0/0 unit 100 family mpls
set logical-system PE1 interface lo0 unit 100 family inet address
101.101.101.101/32

set logical-system PE2 interface xe-0/0/1 unit 100 vlan-id 100


set logical-system PE2 interface xe-0/0/1 unit 100 family inet address 100.1.1.2/24
set logical-system PE2 interface xe-0/0/1 unit 100 family mpls
set logical-system PE2 interface lo0 unit 101 family inet address
102.102.102.102/32

set logical-system PE1 protocol mpls interface xe-0/0/0.100


set logical-system PE2 protocol mpls interface xe-0/0/1.100

set logical-system PE1 protocol rsvp interface xe-0/0/0.100


set logical-system PE2 protocol rsvp interface xe-0/0/1.100

set logical-system PE1 protocol ospf area 0.0.0.0 interface xe-0/0/0.100


set logical-system PE1 protocol ospf area 0.0.0.0 interface lo0.100
set logical-system PE2 protocol ospf area 0.0.0.0 interface xe-0/0/1.100
set logical-system PE2 protocol ospf area 0.0.0.0 interface lo0.101

set logical-system PE2 protocol mpls label-switched-path to_PE1 to 101.101.101.101


set logical-system PE2 protocol mpls label-switched-path to_PE1 bandwidth 10m
set logical-system PE1 protocol mpls label-switched-path to_PE2 to 102.102.102.102
set logical-system PE1 protocol mpls label-switched-path to_PE2 bandwidth 10m

set logical-system PE1 protocol bgp group PE1-PE2 local-address 101.101.101.101


set logical-system PE1 protocol bgp group PE1-PE2 family inet-vpn unicast
set logical-system PE1 protocol bgp group PE1-PE2 type internal
set logical-system PE1 protocol bgp group PE1-PE2 neighbor 102.102.102.102
set logical-system PE1 routing-options autonomous-system 65001
set logical-system PE1 routing-options router-id 101.101.101.101
set logical-system PE2 protocol bgp group PE1-PE2 local-address 102.102.102.102
set logical-system PE2 protocol bgp group PE1-PE2 family inet-vpn unicast
set logical-system PE2 protocol bgp group PE1-PE2 type internal
set logical-system PE2 protocol bgp group PE1-PE2 neighbor 101.101.101.101
set logical-system PE2 routing-options autonomous-system 65001
set logical-system PE2 routing-options router-id 102.102.102.102
set logical-system PE1 interface ge-1/2/0 unit 300 vlan-id 300
set logical-system PE1 interface ge-1/2/0 unit 300 family inet address 12.1.1.2/24
set logical-system PE1 routing-instances L3VPN-1 instance-type vrf
set logical-system PE1 routing-instances L3VPN-1 description "BETWEEN PE1 AND PE2"
set logical-system PE1 routing-instances L3VPN-1 interface ge-1/2/0.300
set logical-system PE1 routing-instances L3VPN-1 protocols ospf area 0.0.0.0
interface ge-1/2/0.300
set logical-system PE1 routing-instances L3VPN-1 route-distinguisher 21:21
set logical-system PE1 routing-instances L3VPN-1 vrf-target target:21:21
set logical-system PE1 routing-instances L3VPN-1 vrf-table-label

set logical-system PE1 policy-option policy-statement REMOTE_OSPF term 1 from


protocol bgp
set logical-system PE1 policy-option policy-statement REMOTE_OSPF term 1 then
accept
set logical-system PE1 policy-option policy-statement REMOTE_OSPF term 2 then
reject
set logical-system PE1 routing-instance L3VPN-1 protocol ospf export REMOTE_OSPF

set logical-system PE2 interface ge-1/2/0 unit 400 vlan-id 400


set logical-system PE2 interface ge-1/2/0 unit 400 family inet address 23.1.1.2/24
set logical-system PE2 routing-instances L3VPN-1 instance-type vrf
set logical-system PE2 routing-instances L3VPN-1 description "BETWEEN PE1 AND PE2"
set logical-system PE2 routing-instances L3VPN-1 interface ge-1/2/0.400
set logical-system PE2 routing-instances L3VPN-1 protocols ospf area 0.0.0.0
interface ge-1/2/0.400
set logical-system PE2 routing-instances L3VPN-1 route-distinguisher 21:21
set logical-system PE2 routing-instances L3VPN-1 vrf-target target:21:21
set logical-system PE2 routing-instances L3VPN-1 vrf-table-label

set logical-system PE2 policy-option policy-statement REMOTE_OSPF term 1 from


protocol bgp
set logical-system PE2 policy-option policy-statement REMOTE_OSPF term 1 then
accept
set logical-system PE2 policy-option policy-statement REMOTE_OSPF term 2 then
reject
set logical-system PE2 routing-instance L3VPN-1 protocol ospf export REMOTE_OSPF

Potrebbero piacerti anche