You need to use the route command or ip command to add a new route to your kernel routing table.
- route command - show / manipulate the IP routing table
- ip command - show / manipulate routing, devices, policy routing and tunnels
# route add default gw 192.168.1.254 eth0And ip command can be used as follows
# ip route add 192.168.1.0/24 dev eth0Edit /etc/sysconfig/network and make route persistence after reboot:
# vi /etc/sysconfig/networkAdd / edit GATEWAY line as follows
GATEWAY=192.168.1.254
No comments:
Post a Comment