делаю:
ip link add veth0 type veth peer name veth1
ip link add veth2 type veth peer name veth3
sysctl -w net.mpls.conf.veth0.input=1
sysctl -w net.mpls.conf.veth2.input=1
ifconfig veth0 10.3.3.1 netmask 255.255.255.0 up
ifconfig veth2 10.4.4.1 netmask 255.255.255.0 up
ip netns add host1
ip netns add host2
ip link set veth1 netns host1
ip link set veth3 netns host2
ip netns exec host1 ifconfig veth1 10.3.3.2 netmask 255.255.255.0 up
ip netns exec host1 ifconfig lo 10.10.10.1 netmask 255.255.255.255 up
ip netns exec host2 ifconfig lo 10.10.10.2 netmask 255.255.255.255 up
ip netns exec host2 ifconfig veth3 10.4.4.2 netmask 255.255.255.0 up
ip netns exec host1 ip route add 10.10.10.2/32 encap mpls 112 via inet 10.3.3.1
ip netns exec host2 ip route add 10.10.10.1/32 encap mpls 111 via inet 10.4.4.1
ip -f mpls route add 111 via inet 10.3.3.2
ip -f mpls route add 112 via inet 10.4.4.2
ip netns exec host2 ping 10.10.10.1 -I 10.10.10.2
PING 10.10.10.1 (10.10.10.1) from 10.10.10.2: 56 data bytes
^C
--- 10.10.10.1 ping statistics ---
4 packets transmitted, 0 packets received, 100% packet loss
~ # ip -f mpls route
111 via inet 10.4.4.2 dev veth2
112 via inet 10.3.3.2 dev veth0
~ # ip netns exec host1 ip route
10.3.3.0/24 dev veth1 proto kernel scope link src 10.3.3.2
10.10.10.2 encap mpls 112 via 10.3.3.1 dev veth1
~ #
~ # ip netns exec host2 ip route
8.8.8.8 via 10.10.10.1 dev lo
10.4.4.0/24 dev veth3 proto kernel scope link src 10.4.4.2
10.10.10.1 encap mpls 111 via 10.4.4.1 dev veth3
В чём проблема?