Add IP and route



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

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

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

By : singlehop.com



Related Posts:



Responses

0 Respones to "Add IP and route"

Post a Comment

»Thank you for reading this article
If you have questions or comments, please leave a comment
»You can click on the Subscribe by email to subscribe comments of this post
»You can register directly link pictures, mp3, video on the comment form.
»You may use some HTML tags such
»Please post comments polite and typing accented Vietnamese if possible
»Thank the good faith comment

 

Categories

Recent Comments

Total Pageviews

Return to top of page ©Web Server Tips Tricks 2010 | Develop by Mr.PhanQuan .Powered by Blogger . All rights reserved.