Ubuntu: change inet addr:


wlan0     Link encap:Ethernet  HWaddr 28:e3:47:81:6e:06              inet addr:  Bcast:  Mask:            inet6 addr: fe80::2ae3:47ff:fe81:6e06/64 Scope:Link            UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1            RX packets:1088 errors:0 dropped:0 overruns:0 frame:0            TX packets:1247 errors:0 dropped:0 overruns:0 carrier:0            collisions:0 txqueuelen:1000             RX bytes:905412 (905.4 KB)  TX bytes:245531 (245.5 KB)  

I want to change the inet addr: , because I think it makes internet connection problems, because I don't have internet access, while one the same system (dual boot) my WiFi works fine with Windows. Also when I enter in my browser it redirects me to a project which I did a long time ago and I don't remember what configurations I changed.

Is there way to change my inet addr to something else?


You should simply stick with DHCP (which is default) and allow your router to assign the IP address to your PC, then you will not have any address issues or conflicts unless you have somehow wrongly configured other devices on the network, for example.



You'll likely see something like:

auto eth0     iface eth0 inet static     address     netmask     network     broadcast     gateway  

Merely change it back to

auto eth0     iface eth0 inet dhcp  

Of course, if you don't see something like that, or if I misunderstood the question, don't just go around editing files for nothing and ask for clarification ;)


If actually resolves something while running Linux, and Windows works fine with that IP, I suspect you have a VM or docker instance running which claims the IP address. I would figure out what is actually serving from when you make a request, and stop that.

If you need consistent IP addresses, you can you DHCP, but set the router to always assign a certain IP to a particular host.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »