cisco+frrouting vpn/bgp+mpls ibgp
- with next-hop-self
- with loopback
- with ldp
- without bgp labeled-unicast
- without route-reflector
- without multi-hop ebgp
Linux の MPLS は loopback を使うことが前提になっている。Linux では LDP を動作させなくても 192.168.0.1 が label 付きパケットを受け取るという前提で動作してしまう。 Cisco は LDP を動作させてから疎通するようになる。以下は LDP をオンにする前後の状態。
before
R1#show mpls ip binding all detail
100.0.0.1/32, rev 2, chkpt: none
in label: imp-null (owner LDP)
100.0.0.2/32, rev 6, chkpt: none
in label: 16 (owner LDP)
192.168.0.0/24, rev 4, chkpt: none
in label: imp-null (owner LDP)
R1#show mpls ldp bindings
lib entry: 100.0.0.1/32, rev 2
local binding: label: imp-null
lib entry: 100.0.0.2/32, rev 6
local binding: label: 16
lib entry: 192.168.0.0/24, rev 4
local binding: label: imp-null
R1#show mpls forwarding-table
Local Outgoing Prefix Bytes Label Outgoing Next Hop
Label Label or VC or Tunnel Id Switched interface
16 No Label 100.0.0.2/32 0 Fa0/0 192.168.0.2
17 No Label 192.168.1.0/24[V] 0 aggregate/A
after
R1#show mpls ip binding all detail
100.0.0.1/32, rev 2, chkpt: none
in label: imp-null (owner LDP)
Advertised to:
100.0.0.2:0
out label: 16 lsr: 100.0.0.2:0
100.0.0.2/32, rev 6, chkpt: none
in label: 16 (owner LDP)
Advertised to:
100.0.0.2:0
out label: imp-null lsr: 100.0.0.2:0 inuse
192.168.0.0/24, rev 4, chkpt: none
in label: imp-null (owner LDP)
Advertised to:
100.0.0.2:0
out label: imp-null lsr: 100.0.0.2:0
R1#show mpls ldp bindings
lib entry: 100.0.0.1/32, rev 2
local binding: label: imp-null
remote binding: lsr: 100.0.0.2:0, label: 16
lib entry: 100.0.0.2/32, rev 6
local binding: label: 16
remote binding: lsr: 100.0.0.2:0, label: imp-null
lib entry: 192.168.0.0/24, rev 4
local binding: label: imp-null
remote binding: lsr: 100.0.0.2:0, label: imp-null
R1#show mpls forwarding-table
Local Outgoing Prefix Bytes Label Outgoing Next Hop
Label Label or VC or Tunnel Id Switched interface
16 Pop Label 100.0.0.2/32 0 Fa0/0 192.168.0.2
17 No Label 192.168.1.0/24[V] 0 aggregate/A