On Tue, May 8, 2012 at 11:38 PM, Rafael Zalamena <[email protected]> wrote:
> Hi misc@,
>
> I'm building a simple MPLS setup to route traffic from one laptop to
> my home network, however I'm unable to properly setup something and
> I'm not getting a route which pushes a label into an incoming packet.
>
> ...
Here is the route output:
ALIX1:
# route -n show -inet
Routing tables
Internet:
Destination Gateway Flags Refs Use Mtu Prio Iface
default 192.168.1.254 UGS 0 0 - 8 vr0
10.0.1/24 link#3 C 0 0 - 4 vr2
10.0.3/24 link#2 UC 2 0 - 4 vr1
10.0.3/24 10.0.3.1 UG 0 0 - 32 vr1
10.0.3.1 00:0d:b9:27:b8:ed UHLc 1 0 - 4 lo0
10.0.3.2 00:0d:b9:27:ba:f5 UHLc 1 927 - 4 vr1
10.0.10.1 10.0.10.1 UH 1 0 33196 4 lo1
127/8 127.0.0.1 UGRS 0 0 33196 8 lo0
127.0.0.1 127.0.0.1 UH 1 0 33196 4 lo0
192.168.1/24 link#1 UC 2 0 - 4 vr0
192.168.1.20 90:e6:ba:06:f6:55 UHLc 4 4501 - L 4 vr0
192.168.1.254 link#1 UHLc 2 0 - 4 vr0
224/4 127.0.0.1 URS 0 0 33196 8 lo0
# route -n show -mpls
Routing tables
MPLS:
In label Out label Op Gateway Flags Refs Use
Mtu Prio Interface
16 - LOCAL 10.0.10.1 UGT 0 0
33196 4 lo1
17 - LOCAL 192.168.1.254 UGT 0 0
- 8 vr0
12345 - POP mpe0 UT 0 0
- 4 mpe0
ALIX3:
# route -n show -inet
Routing tables
Internet:
Destination Gateway Flags Refs Use Mtu Prio Iface
10.0.2/24 link#3 C 0 0 - 4 vr1
10.0.3/24 link#2 UC 2 0 - 4 vr2
10.0.3/24 10.0.3.2 UG 0 0 - 32 vr2
10.0.3.1 00:0d:b9:27:b8:ed UHLc 3 330 - 4 vr2
10.0.3.2 00:0d:b9:27:ba:f5 UHLc 1 0 - 4 lo0
10.0.10.1/32 10.0.3.1 UGT 0 0 - 32 vr2
10.0.10.3 10.0.10.3 UH 1 0 33196 4 lo1
127/8 127.0.0.1 UGRS 0 0 33196 8 lo0
127.0.0.1 127.0.0.1 UH 1 0 33196 4 lo0
192.168.10/24 link#1 UC 1 0 - 4 vr0
192.168.10.99 e8:9a:8f:5e:c6:ec UHLc 0 8654 - 4 vr0
224/4 127.0.0.1 URS 0 0 33196 8 lo0
# route -n show -mpls
Routing tables
MPLS:
In label Out label Op Gateway Flags Refs Use
Mtu Prio Interface
16 16 SWAP 10.0.3.1 UGT 0 0
- 32 vr2
17 - LOCAL 10.0.10.3 UGT 0 0
33196 4 lo1
54321 - POP mpe0 UT 0 0
- 4 mpe0
dmesg ALIX1:
OpenBSD 5.1-current (GENERIC) #210: Thu Apr 26 01:36:40 MDT 2012
[email protected]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Geode(TM) Integrated Processor by AMD PCS ("AuthenticAMD"
586-class) 499 MHz
cpu0: FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX,MMXX,3DNOW2,3DNOW
real mem = 267976704 (255MB)
avail mem = 252768256 (241MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 11/05/08, BIOS32 rev. 0 @ 0xfd088
pcibios0 at bios0: rev 2.1 @ 0xf0000/0x10000
pcibios0: pcibios_get_intr_routing - function not supported
pcibios0: PCI IRQ Routing information unavailable.
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xe0000/0xa800
cpu0 at mainbus0: (uniprocessor)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 1 function 0 "AMD Geode LX" rev 0x33
glxsb0 at pci0 dev 1 function 2 "AMD Geode LX Crypto" rev 0x00: RNG AES
vr0 at pci0 dev 9 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 10,
address 00:0d:b9:27:ba:f4
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
0x004063, model 0x0034
vr1 at pci0 dev 10 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 11,
address 00:0d:b9:27:ba:f5
ukphy1 at vr1 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
0x004063, model 0x0034
vr2 at pci0 dev 11 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 15,
address 00:0d:b9:27:ba:f6
ukphy2 at vr2 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
0x004063, model 0x0034
glxpcib0 at pci0 dev 15 function 0 "AMD CS5536 ISA" rev 0x03: rev 3,
32-bit 3579545Hz timer, watchdog, gpio, i2c
gpio0 at glxpcib0: 32 pins
iic0 at glxpcib0
maxtmp0 at iic0 addr 0x4c: lm86
pciide0 at pci0 dev 15 function 2 "AMD CS5536 IDE" rev 0x01: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <CF 2GB>
wd0: 1-sector PIO, LBA, 1919MB, 3931200 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
ohci0 at pci0 dev 15 function 4 "AMD CS5536 USB" rev 0x02: irq 12,
version 1.0, legacy support
ehci0 at pci0 dev 15 function 5 "AMD CS5536 USB" rev 0x02: irq 12
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "AMD EHCI root hub" rev 2.00/1.00 addr 1
isa0 at glxpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 "AMD OHCI root hub" rev 1.00/1.00 addr 1
mtrr: K6-family MTRR support (2 registers)
nvram: invalid checksum
vscsi0 at root
scsibus0 at vscsi0: 256 targets
softraid0 at root
scsibus1 at softraid0: 256 targets
root on wd0a (ac007d07d3b5b768.a) swap on wd0b dump on wd0b
WARNING: / was not properly unmounted
clock: unknown CMOS layout
(ALIX1 and ALIX3 are clones)
ldpctl show ne:
ALIX1:
ID State Address Iface Uptime
10.0.10.3 OPERATIONAL/ACTIVE 10.0.3.2 vr1 01:17:48
ALIX3:
ID State Address Iface Uptime
10.0.10.1 OPERATIONAL/ACTIVE 10.0.3.1 vr2 01:18:31