The topology displayed in Figure 13-11 shows CE routers Rome and Berlin as being member sites of VPN-Red. Chicago and New York are PE routers and Seattle is a P router. The router configurations follow the explanation below:
Figure 13-11. Case Study 1
The following examples show working BGP/MPLS VPN configurations on Juniper Networks routers. Each section is labeled with the router name and displays the configuration for the routers listed in Figure 13-11. PE Router ChicagoThe following output is the configuration used by PE router Chicago in Case Study 1. This router will exchange routing information with PE router New York. interfaces { fe-1/0/3 { unit 0 { family inet { address 10.0.8.1/24; } family mpls; at-1/2/1 { atm-options { vpi 0 maximum-vcs 200; } unit 100 { vci 0.100; family inet { address 10.0.0.2/24; } family iso; family mpls; lo0 { unit 0 { family inet { address 192.168.5.1/32; } family iso { address 49.0000.0000.0001.00; routing-options { router-id 192.168.5.1; autonomous-system 100; } protocols { rsvp { interface all; } mpls { label-switched-path Chicago-to-newyork { to 192.168.2.1; } interface all; } bgp { local-address 192.168.5.1; family inet-vpn { unicast; } group internal { type internal; neighbor 192.168.0.1; neighbor 192.168.2.1; } } isis { level 1 disable; interface all; } } policy-options { policy-statement MY-EXPORT { term a { from protocol ospf; then { community add VPN-Red; accept; } } term b { then reject; } } policy-statement MY-IMPORT { term a { from { protocol bgp; community VPN-Red; } then accept; } term b { then reject; } } community VPN-Red members target:64512:01; } routing-instances { vpntest { instance-type vrf; interface fe-1/0/3.0; route-distinguisher 64512:01; vrf-import MY-IMPORT; vrf-export MY-EXPORT; protocols { ospf { area 0.0.0.0 { interface fe-1/0/3.0; PE Router New YorkPE router New York exchanges routing information with PE router Chicago and connects to CE router Berlin. The configuration for PE router New York is displayed below: interfaces { so-0/1/0 { unit 0 { family inet { address 10.0.24.1/24; } family mpls; } } so-0/3/0 { unit 0 { family inet { address 10.0.1.1/24; } family iso; family mpls; lo0 { unit 0 { family inet { address 192.168.2.1/32; } family iso { address 49.0000.0000.0003.00; } } } } routing-options { router-id 192.168.2.1; autonomous-system 100; } protocols { rsvp { interface all; } mpls { label-switched-path newyork-to-Chicago { to 192.168.5.1; } interface all; } bgp { local-address 192.168.2.1; group internal { type internal; neighbor 192.168.0.1; neighbor 192.168.5.1; } } isis { level 1 disable; interface all; } } policy-options { policy-statement MY-IMPORT { term a { from { protocol bgp; community VPN-Red; } then accept; } term b { then reject; } } policy-statement MY-EXPORT { term a { from protocol ospf; then { community add VPN-Red; accept; } } term b { then reject; } } community VPN-Red members target:64512:01; } routing-instances { vpntest { instance-type vrf; interface so-0/1/0.0; route-distinguisher 64512:01; vrf-import MY-IMPORT; vrf-export MY-EXPORT; protocols { ospf { area 0.0.0.0 { interface so-0/1/0.0; P Router SeattleSeattle is being used as a provider router and will only function as a part of the MPLS paths between PE routers. The configuration for Seattle is displayed below: interfaces { at-1/2/0 { atm-options { vpi 0 maximum-vcs 200; } unit 100 { vci 0.100; family inet { address 10.0.0.1/24; } family iso; family mpls; } } so-2/0/0 { unit 0 { family inet { address 10.0.1.2/24; } family iso; family mpls; lo0 { unit 0 { family inet { address 192.168.0.1/32; } family iso { address 49.0000.0000.0002.00; routing-options { router-id 192.168.0.1; autonomous-system 100; } protocols { rsvp { interface all; } mpls { interface all; } isis { level 1 disable; interface all; CE Router RomeCE router Rome is site one for the VPN-Red and connects to PE router Chicago. Rome's configuration is displayed below: interfaces { fe-1/0/3 { unit 0 { family inet { address 10.0.8.2/24; lo0 { unit 0 { family inet { address 192.168.12.1/32; } } } } protocols { ospf { area 0.0.0.0 { interface all; CE Router BerlinCE router Berlin is site two for the VPN-Red and connects to PE router New York. The Berlin router's configuration is displayed below: interfaces { so-1/1/0 { unit 0 { family inet { address 10.0.24.2/24; lo0 { unit 0 { family inet { address 192.168.24.1/32; } } } } protocols { ospf { area 0.0.0.0 { interface all; |