Linux localhost 3.16.43-OpenNetworkLinux #1 SMP Thu May 11 18:37:48 UTC 2017 x86_64 GNU/Linux
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.100.1 0.0.0.0 UG 0 0 0 ma1
10.10.10.0 0.0.0.0 255.255.255.0 U 0 0 0 fpPort2
20.20.20.0 0.0.0.0 255.255.255.0 U 0 0 0 fpPort13
192.168.100.0 0.0.0.0 255.255.255.0 U 0 0 0 ma1
root@localhost:~# arp -a
? (20.20.20.2) at 00:a0:c9:00:00:01 [ether] on fpPort13
? (192.168.100.100) at f0:7f:06:1d:56:ff [ether] on ma1
? (192.168.100.1) at 18:b1:69:33:88:a4 [ether] on ma1
? (192.168.100.52) at cc:37:ab:7c:ca:16 [ether] on ma1
? (192.168.100.3) at c8:1f:66:f6:ea:07 [ether] on ma1
? (10.10.10.2) at 00:a0:c9:00:00:01 [ether] on fpPort2
ip route add 100.100.100.0/24 via 10.10.10.2
root@localhost:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.100.1 0.0.0.0 UG 0 0 0 ma1
10.10.10.0 0.0.0.0 255.255.255.0 U 0 0 0 fpPort2
20.20.20.0 0.0.0.0 255.255.255.0 U 0 0 0 fpPort13
100.100.100.0 10.10.10.2 255.255.255.0 UG 0 0 0 fpPort2
192.168.100.0 0.0.0.0 255.255.255.0 U 0 0 0 ma1
root@localhost:~# ip route add 100.100.100.0/24 via 20.20.20.2
RTNETLINK answers: File exists
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies