How to setup the Ubuntu MPLS Cient

How to setup the Ubuntu MPLS Cient

How to enable the MPLS module#
modprobe mpls_router
modprobe mpls_gso
modprobe mpls_iptunnel
sysctl -w net.mpls.conf.lo.input=1
sysctl -w net.mpls.platform_labels=1048575
How to create the virtual interface and bridge interface#
ip link add veth0 type veth peer name veth1
ip link add brm type bridge
ip link set eth1 master brm
ip link set veth0 master brm
ip addr add 192.168.23.99/24 dev brm
ip addr add 192.168.23.100/24 dev veth0
ip link set brm up
ip link set veth0 up
sysctl -w net.mpls.conf.veth0.input=1
sysctl -w net.mpls.conf.brm.input=1
ip netns add host1
ip link set veth1 netns host1
ip netns exec host1 ifconfig veth1 192.168.23.200/24 up
How to set the ip route with MPLS encapsulate and decapsulate#
ip route add 192.168.23.1/32 encap mpls 48 via inet 192.168.23.1
ip route add 10.10.23.11/32 encap mpls 48 via inet 192.168.23.1
ip netns exec host1 ip route add 10.10.23.11/32 via inet 192.168.23.199
ip -f mpls route add 384 via inet 192.168.23.200
radio access interface#
This is the normal ETH interface, but do not configure any IP to the interface, set the interface ip configuration to “Manual”.
Then in terminal run: ifconfig ethx up
TAP interface#
First you need the tunctl, if not exist in the system, install it.
tunctl -t tap9 -u root
ifconfig tap9 <radio access ip> netmask 255.255.255.0
ifconfig tap9 mtu 1400
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值