for Me

Linux route Add Command Examples

      Linux add a default route using route command
    # route add default gw 192.168.1.254 eth0
 
      Linux add a default gateway (route) using ip command
      # ip route add 192.168.1.0/24 dev eth0
 
      Edit /etc/network/interfaces file, enter:
    # vi /etc/network/interfaces

Best way add gateway in /etc/sysconfig/network


http://payripo.com/?share=112291 

No comments:

Post a Comment