Saturday, May 1, 2010

Add IP and route

Commands :
[root@morgan]# ifconfig eth0 netmask up
[root@morgan]# route add default gw //gateway add

Adding a static route with route :
[root@morgan]# route add -net netmask gw

Removing a static network route and adding a static host route :
[root@morgan]# route del -net netmask gw
[root@morgan]# route add -net netmask gw //for network
[root@morgan]# route add -host gw

No comments:

Post a Comment