Hello again,
I'm still having problems setting up MPLS/BGP VPN.
This is my configuration:
r0
version 8.5R1.13;
system {
host-name r0;
root-authentication {
encrypted-password "$1$eRYHj8cM$vuvHGDgNV12hwb4J1ovcz/"; ## SECRET-DATA
}
syslog {
user * {
any emergency;
}
file messages {
any any;
authorization info;
}
file interactive-commands {
interactive-commands any;
}
}
}
interfaces {
fe-0/0/0 {
unit 0 {
family inet {
address 192.168.0.254/24;
}
}
}
fe-0/0/1 {
unit 0 {
family inet {
address 172.16.0.1/30;
}
family mpls;
}
}
}
routing-options {
autonomous-system 65535;
}
protocols {
rsvp {
traceoptions {
file rsvp;
flag all;
}
interface fe-0/0/1.0;
}
mpls {
label-switched-path r0-to-r1 {
to 172.16.0.2;
}
interface fe-0/0/1.0;
interface fe-0/0/0.0;
}
bgp {
group r0-to-r1 {
type internal;
local-address 172.16.0.1;
family inet-vpn {
unicast;
}
neighbor 172.16.0.2;
}
}
ospf {
traffic-engineering;
area 0.0.0.0 {
interface fe-0/0/1.0;
}
}
}
routing-instances {
VPN {
instance-type vrf;
interface fe-0/0/0.0;
route-distinguisher 65535:0;
vrf-target target:65535:5;
}
}
r1
version 8.5R1.13;
system {
host-name r1;
root-authentication {
encrypted-password "$1$ttk6fSnu$zcFVcQdaWWAXghG3/12d10"; ## SECRET-DATA
}
syslog {
user * {
any emergency;
}
file messages {
any any;
authorization info;
}
file interactive-commands {
interactive-commands any;
}
}
}
interfaces {
fe-0/0/0 {
unit 0 {
family inet {
address 192.168.1.254/24;
}
}
}
fe-0/0/1 {
unit 0 {
family inet {
address 172.16.0.2/30;
}
family mpls;
}
}
}
routing-options {
autonomous-system 65535;
}
protocols {
rsvp {
interface fe-0/0/1.0;
}
mpls {
label-switched-path r1-to-r0 {
to 172.16.0.1;
}
interface fe-0/0/1.0;
interface fe-0/0/0.0;
}
bgp {
group r1-to-r0 {
type internal;
local-address 172.16.0.2;
family inet-vpn {
unicast;
}
neighbor 172.16.0.1;
}
}
ospf {
traffic-engineering;
area 0.0.0.0 {
interface fe-0/0/1.0;
}
}
}
routing-instances {
VPN {
instance-type vrf;
interface fe-0/0/0.0;
route-distinguisher 65535:1;
vrf-target target:65535:5;
}
}
Some more information:
r0
root@r0> show rsvp neighbor
RSVP neighbor: 1 learned
Address Idle Up/Dn LastChange HelloInt HelloTx/Rx MsgRcvd
172.16.0.2 0 1/0 21:32 9 147/146 73
root@r0> show mpls lsp
Ingress LSP: 1 sessions
To From State Rt ActivePath P LSPname
172.16.0.2 172.16.0.1 Up 0 * r0-to-r1
Total 1 displayed, Up 1, Down 0
Egress LSP: 1 sessions
To From State Rt Style Labelin Labelout LSPname
172.16.0.1 172.16.0.2 Up 0 1 FF 3 - r1-to-r0
Total 1 displayed, Up 1, Down 0
Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0
root@r0> show bgp neighbor
Peer: 172.16.0.2+64915 AS 65535 Local: 172.16.0.1+179 AS 65535
Type: Internal State: Established Flags: <Sync>
Last State: OpenConfirm Last Event: RecvKeepAlive
Last Error: None
Options: <Preference LocalAddress AddressFamily Rib-group Refresh>
Address families configured: inet-vpn-unicast
Local Address: 172.16.0.1 Holdtime: 90 Preference: 170
Number of flaps: 1
Last flap event: RecvNotify
Error: 'Cease' Sent: 0 Recv: 1
Peer ID: 172.16.0.2 Local ID: 172.16.0.1 Active Holdtime: 90
Keepalive Interval: 30 Peer index: 0
BFD: disabled, down
NLRI advertised by peer: inet-vpn-unicast
NLRI for this session: inet-vpn-unicast
Peer supports Refresh capability (2)
Table bgp.l3vpn.0
RIB State: BGP restart is complete
RIB State: VPN restart is complete
Send state: not advertising
Active prefixes: 0
Received prefixes: 0
Suppressed due to damping: 0
Table VPN.inet.0 Bit: 20000
RIB State: BGP restart is complete
RIB State: VPN restart is complete
Send state: in sync
Active prefixes: 0
Received prefixes: 0
Suppressed due to damping: 0
Advertised prefixes: 1
Last traffic (seconds): Received 15 Sent 11 Checked 60
Input messages: Total 30 Updates 1 Refreshes 1 Octets 626
Output messages: Total 32 Updates 2 Refreshes 0 Octets 686
Output Queue[0]: 0
Output Queue[1]: 0
root@r0> show bgp group
Group Type: Internal AS: 65535 Local AS: 65535
Name: r0-to-r1 Index: 0 Flags: <Export Eval>
Holdtime: 0
Total peers: 1 Established: 1
172.16.0.2+64915
bgp.l3vpn.0: 0/0/0
VPN.inet.0: 0/0/0
Groups: 1 Peers: 1 External: 0 Internal: 1 Down peers: 0 Flaps: 1
Table Tot Paths Act Paths Suppressed History Damp State Pending
bgp.l3vpn.0 0 0 0 0 0 0
VPN.inet.0 0 0 0 0 0 0
inet.0 0 0 0 0 0 0
root@r0> show route
inet.0: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
172.16.0.0/30 *[Direct/0] 00:22:50
> via fe-0/0/1.0
172.16.0.1/32 *[Local/0] 00:22:50
Local via fe-0/0/1.0
224.0.0.5/32 *[OSPF/10] 00:22:50, metric 1
MultiRecv
inet.3: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
172.16.0.2/32 *[RSVP/7] 00:22:20, metric 65535
> to 172.16.0.2 via fe-0/0/1.0, label-switched-path r0-to-r1
__juniper_private1__.inet.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
10.0.0.1/32 *[Direct/0] 00:22:50
> via lo0.16385
10.0.0.16/32 *[Direct/0] 00:22:50
> via lo0.16385
VPN.inet.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
192.168.0.0/24 *[Direct/0] 00:22:50
> via fe-0/0/0.0
192.168.0.254/32 *[Local/0] 00:22:50
Local via fe-0/0/0.0
mpls.0: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
0 *[MPLS/0] 00:22:50, metric 1
Receive
1 *[MPLS/0] 00:22:50, metric 1
Receive
2 *[MPLS/0] 00:22:50, metric 1
Receive
root@r0> show route table bgp.l3vpn.0
root@r0>
r1
root@r1> show rsvp neighbor
RSVP neighbor: 1 learned
Address Idle Up/Dn LastChange HelloInt HelloTx/Rx MsgRcvd
172.16.0.1 5 1/0 23:10 9 156/156 74
root@r1> show mpls lsp
Ingress LSP: 1 sessions
To From State Rt ActivePath P LSPname
172.16.0.1 172.16.0.2 Up 0 * r1-to-r0
Total 1 displayed, Up 1, Down 0
Egress LSP: 1 sessions
To From State Rt Style Labelin Labelout LSPname
172.16.0.2 172.16.0.1 Up 0 1 FF 3 - r0-to-r1
Total 1 displayed, Up 1, Down 0
Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0
root@r1> show bgp neighbor
Peer: 172.16.0.1+179 AS 65535 Local: 172.16.0.2+64915 AS 65535
Type: Internal State: Established Flags: <Sync>
Last State: OpenConfirm Last Event: RecvKeepAlive
Last Error: None
Options: <Preference LocalAddress AddressFamily Rib-group Refresh>
Address families configured: inet-vpn-unicast
Local Address: 172.16.0.2 Holdtime: 90 Preference: 170
Number of flaps: 0
Peer ID: 172.16.0.1 Local ID: 172.16.0.2 Active Holdtime: 90
Keepalive Interval: 30 Peer index: 0
BFD: disabled, down
NLRI advertised by peer: inet-vpn-unicast
NLRI for this session: inet-vpn-unicast
Peer supports Refresh capability (2)
Table bgp.l3vpn.0
RIB State: BGP restart is complete
RIB State: VPN restart is complete
Send state: not advertising
Active prefixes: 0
Received prefixes: 0
Suppressed due to damping: 0
Table VPN.inet.0 Bit: 20000
RIB State: BGP restart is complete
RIB State: VPN restart is complete
Send state: in sync
Active prefixes: 0
Received prefixes: 0
Suppressed due to damping: 0
Advertised prefixes: 1
Last traffic (seconds): Received 17 Sent 20 Checked 8
Input messages: Total 33 Updates 2 Refreshes 0 Octets 679
Output messages: Total 34 Updates 1 Refreshes 1 Octets 702
Output Queue[0]: 0
Output Queue[1]: 0
root@r1> show bgp group
Group Type: Internal AS: 65535 Local AS: 65535
Name: r1-to-r0 Index: 0 Flags: <Export Eval>
Holdtime: 0
Total peers: 1 Established: 1
172.16.0.1+179
bgp.l3vpn.0: 0/0/0
VPN.inet.0: 0/0/0
Groups: 1 Peers: 1 External: 0 Internal: 1 Down peers: 0 Flaps: 0
Table Tot Paths Act Paths Suppressed History Damp State Pending
bgp.l3vpn.0 0 0 0 0 0 0
VPN.inet.0 0 0 0 0 0 0
inet.0 0 0 0 0 0 0
root@r1> show route
inet.0: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
172.16.0.0/30 *[Direct/0] 00:24:00
> via fe-0/0/1.0
172.16.0.2/32 *[Local/0] 00:24:00
Local via fe-0/0/1.0
224.0.0.5/32 *[OSPF/10] 00:24:00, metric 1
MultiRecv
inet.3: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
172.16.0.1/32 *[RSVP/7] 00:10:33, metric 65535
> to 172.16.0.1 via fe-0/0/1.0, label-switched-path r1-to-r0
__juniper_private1__.inet.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
10.0.0.1/32 *[Direct/0] 00:24:00
> via lo0.16385
10.0.0.16/32 *[Direct/0] 00:24:00
> via lo0.16385
VPN.inet.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
192.168.1.0/24 *[Direct/0] 00:24:00
> via fe-0/0/0.0
192.168.1.254/32 *[Local/0] 00:24:00
Local via fe-0/0/0.0
mpls.0: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
0 *[MPLS/0] 00:24:00, metric 1
Receive
1 *[MPLS/0] 00:24:00, metric 1
Receive
2 *[MPLS/0] 00:24:00, metric 1
Receive
root@r1> show route table bgp.l3vpn.0
root@r1>
Where am I wrong?
Thanks!