Linux MPLS 总结
来源:互联网 发布:js引用本地json文件 编辑:程序博客网 时间:2024/06/14 12:45
Linux MPLS 总结
linux 4.5 以上已支持MPLS TUNNEL
, 需升级iproute2
, 新版 iproute2
已支持MPLS
路由.
更新Kernel
使用 elrepo yum 源 RHEL/CentOS 升级到 4.x 内核
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.orgRHEL7rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpmRHEL6rpm -Uvh http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpmRHEL5rpm -Uvh http://www.elrepo.org/elrepo-release-5-5.el5.elrepo.noarch.rpm
elrepo-kernel
仓库中包含 kernel-lt(long time)
& kernel-ml (maintain)
两种内核. 这里安装 kernel-ml
当前版本为 4.12.
yum --disablerepo=* --enablerepo=elrepo-kernel install kernel-mlyum --enablerepo=elrepo-kernel install kernel-ml
启用MPLS
modprobe mpls_routermodprobe mpls_gsomodprobe mpls_iptunnelsysctl -w net.mpls.conf.enp0s9.input=1sysctl -w net.mpls.conf.lo.input=1sysctl -w net.mpls.platform_labels=1048575
更新iproute2
git clone git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.gitcd iproute2./configure# edit Makefile & disable tcmake make DESTDIR=`pwd`/dist install
测试MPLS
添加MPLS
路由, 使用标签 100
封装 10.10.10.10/32
, 使用标签18
封装 172.16.48.174/32
.
ip route add 10.10.10.10/32 encap mpls 100 via inet 192.168.1.2ip r add 172.16.48.174/32 encap mpls 18 via 50.0.1.5
输入标签 100
进行标签交换转发, 封装标签200
并转发到 192.168.2.2
.
ip -f mpls route add 100 as 200 via inet 192.168.2.2
输入标签300
转发到本地
ip -f mpls route add 300 dev lo
Qugga-LDPD
qugga-ldpd
已支持MPLS LDP
协议,可与交换机组成MPLS LSP
网络. 具体可参考:
https://github.com/rwestphal/quagga-ldpdhttps://github.com/rwestphal/quagga-ldpd/wiki/ldpd-basic-test-setup
参考
http://elrepo.org/tiki/tiki-index.php
http://elrepo.org/tiki/kernel-ml
http://elrepo.org/tiki/kernel-lt
http://www.ostechnix.com/install-linux-kernel-4-4-5-centos-ubuntu/
http://elrepo.org/linux/kernel/el7/x86_64/RPMS/
http://elrepo.org/linux/kernel/el6/x86_64/RPMS/
http://git.kernel.org/pub/scm/linux/kernel/git/shemminger/
http://git.kernel.org/pub/scm/linux/kernel/git/shemminger/bridge-utils.git/
http://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git/
http://git.kernel.org/pub/scm/linux/kernel/git/shemminger/rstp.git/
http://git.kernel.org/pub/scm/linux/kernel/git/shemminger/vxlan-next.git/
- Linux MPLS 总结
- MPLS-4 总结
- MPLS技术学习总结
- MPLS
- MPLS
- MPLS
- MPLS
- Linux上实现mpls的环境配置
- MPLS IP VPN 跨域配置Option A及总结
- 哥这两天的工作切换到移植mpls-linux
- Linux上实现mpls,ldpd(Quagga)完整步骤
- MPLS-5 MPLS-VPN
- MPLS Fundamentals
- MPLS/VPN
- MPLS VPN
- MPLS VPN
- MPLS简述
- MPLS VPN
- Dubbo的注册中心 官方推荐zookeeper
- ubuntu安装docker以及dockerfly
- JavaWeb-ssh框架搭建
- zcmu-1957
- sql server 2008 r安装
- Linux MPLS 总结
- cartographer 用自己的机器人建图、保存地图
- HDU 5961&AOJ 821 传递
- selenium三种方法isEnable()、isDisplayed()和isSelected()的区别
- cookie实现用户登录
- 2017多校7-三道水题
- Node.js模块
- Zipper(动态规划)
- 基础博弈【理解】