adding route in linux 7 code example Example: how to put a route to host on redhat ~]# ip route add 192.0.2.0/24 via 10.0.0.1 [dev ifname]