Wednesday, November 26, 2008

Change IP Address - Linux

This is how to change IP address with command line interface:
  1. # ifconfig eth0 [ip address] netmask [subnet]
  2. # /sbin/route add -net default gw [ip gateway]
  3. # vi -w /etc/resolv.conf to change or adding name servers
and then you can check the configuration by firing up this command:
  • # /sbin/route -n

No comments:

Post a Comment

Hi, for all of those who already put comments on my blog post, thanks.. really appreciate it. And for those who have not, just put your comments here :)