理会VTY Shell设置路由器
副问题[/!--empirenews.page--]
因为 RIP 协议行使 UDP 作为传输协议,并被分派了 520 端口,因此我们必要在 firewalld 设置中应承该端口。 firewall-cmd --add-port=520/udp –permanent firewalld-cmd -reload 此刻,我们可以行使以下呼吁启动 FRR 处事: systemctl start frr 行使 VTY 举办设置此刻,我们必要行使 VTY Shell 设置 RIP。 在主机 Alpha 上: [root@alpha ~]# vtysh
Hello,thisisFRRouting(version 7.2RPKI). Copyright1996-2005KunihiroIshiguro, et al.
alpha# configure terminal alpha(config)# router rip alpha(config-router)# network 192.168.122.0/24 alpha(config-router)# network 10.10.10.0/24 alpha(config-router)#route10.10.10.5/24 alpha(config-router)#dowrite Note:this version of vtysh never writes vtysh.conf BuildingConfiguration... Configuration saved to /etc/frr/ripd.conf Configuration saved to /etc/frr/staticd.conf alpha(config-router)#dowrite memory Note:this version of vtysh never writes vtysh.conf BuildingConfiguration... Configuration saved to /etc/frr/ripd.conf Configuration saved to /etc/frr/staticd.conf alpha(config-router)#exit 相同地,在主机 Beta 上: [root@beta ~]# vtysh
Hello,thisisFRRouting(version 7.2RPKI). Copyright1996-2005KunihiroIshiguro, et al.
beta# configure terminal beta(config)# router rip beta(config-router)# network 192.168.122.0/24 beta(config-router)# network 10.12.11.0/24 beta(config-router)#dowrite Note:this version of vtysh never writes vtysh.conf BuildingConfiguration... Configuration saved to /etc/frr/zebra.conf Configuration saved to /etc/frr/ripd.conf Configuration saved to /etc/frr/staticd.conf beta(config-router)#dowrite memory Note:this version of vtysh never writes vtysh.conf BuildingConfiguration... Configuration saved to /etc/frr/zebra.conf Configuration saved to /etc/frr/ripd.conf Configuration saved to /etc/frr/staticd.conf beta(config-router)#exit 完成后,像下面这样搜查两台主机路由: [root@alpha ~]#iproute show default via 192.168.122.1 dev eth0 proto static metric 100 (编辑:湖南网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |