Hello, this is FRRouting (version 7.2RPKI). Copyright 1996-2005 Kunihiro Ishiguro, 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)# route 10.10.10.5/24 alpha(config-router)# do write Note: this version of vtysh never writes vtysh.conf Building Configuration... Configuration saved to /etc/frr/ripd.conf Configuration saved to /etc/frr/staticd.conf alpha(config-router)# do write memory Note: this version of vtysh never writes vtysh.conf Building Configuration... Configuration saved to /etc/frr/ripd.conf Configuration saved to /etc/frr/staticd.conf alpha(config-router)# exit
Hello, this is FRRouting (version7.2RPKI). Copyright 1996-2005 Kunihiro Ishiguro, 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 Building Configuration... 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 Building Configuration... 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
完成后,像下面这样检查两台主机路由:
1 2 3 4 5
[root@alpha ~]# ip route show default via 192.168.122.1 dev eth0 proto static metric 100 10.10.10.0/24 dev eth1 proto kernel scope link src 10.10.10.12 metric 101 10.12.11.0/24 via 192.168.122.50 dev eth0 proto 189 metric 20 192.168.122.0/24 dev eth0 proto kernel scope link src 192.168.122.100 metric 100
[root@beta ~]# ip route show default via 192.168.122.1 dev eth0 proto static metric 100 10.10.10.0/24 via 192.168.122.100 dev eth0 proto 189 metric 20 10.12.11.0/24 dev eth1 proto kernel scope link src 10.12.11.12 metric 101 192.168.122.0/24 dev eth0 proto kernel scope link src 192.168.122.50 metric 100