August 21, 2008

Force an IP address change in Ubuntu

I use Ubuntu on my laptop at BigBlueHat almost exclusively (save for some Photoshopping). I ran into a problem last week with having the same IP address as our wireless printer. After some man page research, I can up with this solution:

sudo ifconfig eth1 address 192.168.1.7

For me, that changes my wireless card (eth1) to use 192.168.1.7 IP address. The really happy part was that there was no rebooting required, and the changes was quick and painless though a bit geeky.

Posted by TheIdeaMan at August 21, 2008 11:52 AM | TrackBack
Comments

You can also set the IP address in /etc/network/interfaces so that it always boots up that way.

Posted by: Austin at August 21, 2008 09:06 PM
Post a comment









Remember personal info?