栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

docker frrouting安装

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

docker frrouting安装

啥都不说了兄弟们,不会装docker也没事,直接复制粘贴,网工也能会,找了两天安装不如自己写一个给大家看看,巨简单几条命令马上按完就能用还是容器里面的!!!!

相比quagga,quagga能用的命令有点少,frrouting命令更多,推荐大家用frrouting

frrouting官方文档

FRRouting Developer’s Guide — FRR latest documentation

安装docker
 

[root@localhost ~]# mount /dev/cdrom /mnt
[root@localhost ~]# yum -y install wget 
[root@localhost ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo   
[root@localhost ~]# yum install -y yum-utils
[root@localhost ~]# yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
[root@localhost ~]# yum -y install docker-ce

frrouting服务(需要先安装docker)

#docker启动frr服务

[root@localhost~]$ docker run -it -d --restart=always --network=host --name frr ajones17/frr:latest

#进入镜像

[root@localhost ~]$ docker exec -it frr /bin/bash

#创建配置文件

bash-4.4# touch /etc/frr/vtysh.conf

#然后修改配置文件开启相应的功能

bash-4.4# sed -i “s/=no/=yes/g” /etc/frr/daemons

#启动frr服务

bash-4.4# /etc/init.d/frr start

#进入命令行配置路由,语法类似思科

bash-4.4# vtysh

es1#conf t

es1(config)#router bgp 600

es(config-router)#

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/939746.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号