啥都不说了兄弟们,不会装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)#