Thank you for your response but it is not working. I made a new config like this:
root# show logical-routers R1
interfaces {
fxp1 {
unit 2 {
vlan-id 2;
family inet {
address 10.10.10.1/24;
}
family mpls;
}
}
}
protocols {
mpls {
interface fxp1.2;
}
ospf {
area 0.0.0.0 {
interface fxp1.2 {
interface-type p2p;
hello-interval 1;
}
interface fxp1.0;
}
}
ldp {
interface fxp1.2;
}
}
root# show logical-routers R2
interfaces {
fxp2 {
unit 2 {
vlan-id 2;
family inet {
address 10.10.10.2/24;
}
family mpls;
}
}
}
protocols {
mpls {
interface fxp2.2;
}
ospf {
area 0.0.0.0 {
interface fxp2.2 {
interface-type p2p;
hello-interval 1;
}
interface fxp2.0;
}
}
ldp {
interface fxp2.2;
}
}
root# show interfaces fxp1
vlan-tagging;
[edit]
root# show interfaces fxp2
vlan-tagging;
Now, neither ospf or other protocol are not working:
root# run show ospf interface logical-router R1
Interface State Area DR ID BDR ID Nbrs
fxp1.2 PtToPt 0.0.0.0 0.0.0.0 0.0.0.0 0
[edit]
root# run show ldp neighbor logical-router R1
[edit]
root# run ping logical-router R1 10.10.10.2
PING 10.10.10.2 (10.10.10.2): 56 data bytes
64 bytes from 10.10.10.2: icmp_seq=0 ttl=64 time=3.782 ms
64 bytes from 10.10.10.2: icmp_seq=1 ttl=64 time=2.684 ms
^C
--- 10.10.10.2 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 2.684/3.233/3.782/0.549 ms
root# run monitor traffic interface fxp1
verbose output suppressed, use <detail> or <extensive> for full protocol decode
Address resolution is ON. Use <no-resolve> to avoid any reverse lookup delay.
Address resolution timeout is 4s.
Listening on fxp1, capture size 96 bytes
Reverse lookup for 224.0.0.5 failed (check DNS reachability).
Other reverse lookup failures will not be reported.
Use <no-resolve> to avoid reverse lookups on IP addresses.
13:27:51.718735 Out IP 10.10.10.1 > 224.0.0.5: OSPFv2, Hello, length 44
13:27:52.538035 Out IP 10.10.10.1 > 224.0.0.5: OSPFv2, Hello, length 44
13:27:52.938067 Out IP 10.10.10.1.ldp > 224.0.0.2.ldp: LDP, Label-Space-ID: 10.10.10.1:0, pdu-length: 38
13:27:53.498032 Out IP 10.10.10.1 > 224.0.0.5: OSPFv2, Hello, length 44
I see packets out,but nothing in. Do I need anything else to permit traffic between logical-routers ? (ping works )