Ubuntu 14.04 /16.04 安装配置quagga:
apt-get install quagga
在Linux系统中,路由表和转发数据包的功能都是Linux内核所提供。在我们的Ubuntu14.04系统中,默认情况下是没有开启数据包转发功能的。开启方式:
```
Echo "net.ipv4.conf.all.forwarding=1" | sudo tee -a /etc/sysctl.conf
Echo "net.ipv4.conf.default.forwarding=1" | sudo tee -a /etc/sysctl.conf
sysctl –p
Quagga配置文件例子在/usr/share/doc/quagga/examples/中,每个功能对应各自配置文件,需将其拷贝至/etc/quagga并改名及权限
cp /usr/share/doc/quagga/examples/*.sample /etc/quagga/
mv babeld.conf.sample babeld.conf
mv isisd.conf.sample isisd.conf
mv ospfd.conf.sample ospfd.conf
mv ripngd.conf.sample ripngd.conf
mv zebra.conf.sample zebra.conf
mv bgpd.conf.sample bgpd.conf
mv ospf6d.conf.sample ospf6d.conf
mv ripd.conf.sample ripd.conf
mv vtysh.conf.sample vtysh.conf
root@ubuntu:/etc/quagga# chown quagga:quagga *
/etc/quagga/daemons中配置功能开启
重启quagga,使配置生效:
/etc/init.d/quagga restart
连接zebra/bgpd:
telnet localhost zebra
telnet 127.0.0.1 zebra