I did something like this just a little while ago to change my IP address
sudo ifconfig eth0 192.168.0.120 netmask 255.255.255.0 up
and now I canīt connect to the internet at all. It was really stupid to just do it like that, but I didnīt know how to get a static IP address otherwise (Iīm running Xubuntu). Iīd apreciate any help at the moment (Iīm writing this from another machine on the network) and hope to get this resolved fast.
BTW, when I open Firefox, it pops up an error saying that it couldnīt connect to the internet.
Hereīs kinda what iconfig says.
# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:80:C8:F8:4A:53
inet addr:192.168.0.120 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:9 Base address:0x5000
Iīll have to fix this from the command line.
here is my network info that I want to be static:
IP: 192.168.0.120 (router is default 192.168.0.1)
Any help will be greatly appreciated and I apologize if this has been asked before (I searched a lot).