Networking 在Centos中配置动态路由
我有两台机器centos1和centos2(都在CentOs 7.9上)。centos1的主IP为192.168.196.133,辅助IP为10.0.0.4。Nginx在centos1上提供一个静态网页,其中包含内容Networking 在Centos中配置动态路由,networking,routes,centos7,dynamic-routing,quagga,Networking,Routes,Centos7,Dynamic Routing,Quagga,我有两台机器centos1和centos2(都在CentOs 7.9上)。centos1的主IP为192.168.196.133,辅助IP为10.0.0.4。Nginx在centos1上提供一个静态网页,其中包含内容欢迎使用Nginx。在centos上,当我通过192.168.196.133 dev ens33将10.0.0.4/24添加到/etc/sysconfig/network scripts/route-ens33并重新启动网络服务时,curl 10.0.0.4的输出是欢迎使用NGINX
欢迎使用Nginx
。在centos上,当我通过192.168.196.133 dev ens33将10.0.0.4/24添加到/etc/sysconfig/network scripts/route-ens33并重新启动网络服务时,curl 10.0.0.4
的输出是欢迎使用NGINX
。我想知道我应该对zebra和ospfd配置进行哪些更改,以便能够使用动态路由从centos2使用curl 10.0.0.4
我当前的配置-
[root@centos2 quagga]# cat zebra.conf
hostname centos2.example.com
interface ens33
ip address 192.168.196.133/24
ipv6 nd suppress-ra
interface lo
ip forwarding
line vty
[root@centos2 quagga]# cat ospfd.conf
interface ens33
interface lo
router ospf
network 192.168.196.133/24 area 0.0.0.0
line vty
[root@centos2 quagga]#