Lack of ipv4 Address(es) and I apparently disabled my Ethernet...
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Lack of ipv4 Address(es) and I apparently disabled my Ethernet...
It all started just that little amount of time ago, I was failing horribly at configuring OpenVPN and decided to reboot. Upon rebooting, I couldn't access the internet. I figured it was my router since it's given trouble in the past, even on Windows. However, after rebooting the router and confirming internet access with a cellphone, I failed to access the internet from my machine. After doing vague amounts of research, I decided to pull up information via GUI and discovered that I had ipv6 addresses, but not ipv4 addresses. Which at the very least allowed me to migrate from the "linux no wifi" style searching to the seemingly less ridiculous "Ipv4 how to enable linux" or perhaps it's seemingly more attractive cousin "how to reset networking config Ubuntu" (Keep in mind I was more thorough with my searches). After reading a fair amount of media and playing with config files in /etc for about a half hour in total like a fiddle, I reboot and now my ethernet card is disabled. I'm currently typing this from a Live Debian USB. My system is running Ubuntu 18.04.2 LTS.
Perhaps I should have put that differently, I apologize.
What I am looking to do is to completely reset any and all network configuration
via the command line or perhaps just handle reassigning ipv4/inet addresses
to my ethernet connection and wifi card. As stated earlier, I am not even able to detect a functioning ethernet connection. The router address should be 192.168.0.1. My IP addresses are dynamically assigned, I've considered making it static. However, I want to focus on regaining internet access for the time being.
I am completely clueless as to where my Network Managers config file and to
be completely honest I don't exactly understand anything about said "manager", sans the
name and reason for existence. I am competent with respect to command line use
and handling config files, however I don't exactly possess Arch-Tier Competence.
I have provided the output from the requested terminal commands.
"ip addr"
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp1s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 74:86:7a:11:a0:f5 brd ff:ff:ff:ff:ff:ff
3: wlp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 9c:2a:70:cc:81:b9 brd ff:ff:ff:ff:ff:ff
inet6 2603:9001:4504:2c00:c43f:920e:cbb2:6a09/64 scope global dynamic noprefixroute
valid_lft 3598sec preferred_lft 3598sec
inet6 fe80::67c9:a5e5:d8d7:b250/64 scope link noprefixroute
valid_lft forever preferred_lft forever
4: anbox0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000
link/ether aa:9e:ed:c5:9d:7f brd ff:ff:ff:ff:ff:ff
inet 192.168.250.1/24 scope global anbox0
valid_lft forever preferred_lft forever
inet6 fe80::a89e:edff:fec5:9d7f/64 scope link
valid_lft forever preferred_lft forever
5: pan1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000
link/ether 62:fb:d6:f8:f1:db brd ff:ff:ff:ff:ff:ff
inet 10.48.243.1/24 brd 10.48.243.255 scope global pan1
valid_lft forever preferred_lft forever
inet6 fe80::60fb:d6ff:fef8:f1db/64 scope link
valid_lft forever preferred_lft forever
"ip route"
10.48.243.0/24 dev pan1 proto kernel scope link src 10.48.243.1
192.168.250.0/24 dev anbox0 proto kernel scope link src 192.168.250.1
I again apologize for the badly executed prompt. Since at the time of writing
this is my only machine, you could imagine the lack of internet access
not being super fun. Thanks for your time.
Last edited by WannabeMaestro; 11-25-2019 at 11:26 AM.
"ip addr"
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp1s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 74:86:7a:11:a0:f5 brd ff:ff:ff:ff:ff:ff
3: wlp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 9c:2a:70:cc:81:b9 brd ff:ff:ff:ff:ff:ff
inet6 2603:9001:4504:2c00:c43f:920e:cbb2:6a09/64 scope global dynamic noprefixroute
valid_lft 3598sec preferred_lft 3598sec
inet6 fe80::67c9:a5e5:d8d7:b250/64 scope link noprefixroute
valid_lft forever preferred_lft forever
4: anbox0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000
link/ether aa:9e:ed:c5:9d:7f brd ff:ff:ff:ff:ff:ff
inet 192.168.250.1/24 scope global anbox0
valid_lft forever preferred_lft forever
inet6 fe80::a89e:edff:fec5:9d7f/64 scope link
valid_lft forever preferred_lft forever
5: pan1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000
link/ether 62:fb:d6:f8:f1:db brd ff:ff:ff:ff:ff:ff
inet 10.48.243.1/24 brd 10.48.243.255 scope global pan1
valid_lft forever preferred_lft forever
inet6 fe80::60fb:d6ff:fef8:f1db/64 scope link
valid_lft forever preferred_lft forever
"ip route"
10.48.243.0/24 dev pan1 proto kernel scope link src 10.48.243.1
192.168.250.0/24 dev anbox0 proto kernel scope link src 192.168.250.1
anbox0 probably has something to do with anbox, the android emulator, which was definitely in alpha stage last time i looked. It actually almost borked my system once, don't remember the details anymore. It digs itself deep into the OS.
pan1 is not something i ever heard of.
My guess is you should get rid of both. Undo whatever you did.
And in the future remember that Linux gives you full control over your system, with the responsibility that entails.
Pardon, but I should highlight the fact I had anbox installed for at least 3 months and my network card seemed to work just fine. In addition, this problem only started after a reboot after the installation of OpenVPN and failing to use it correctly. I understand that the problem lies in a configuration issue between with the network card and nothing else, I literally just need to know what I can do without the ability to install packages (using "dpkg -i" doesn't seem to work) What "network.cfg" do I have to fiddle with to regain internet access "pan" I believe is related to OpenVPN. I need the Expert who knows the things I don't, help please. What you've told me isn't working.
Pardon, but I should highlight the fact I had anbox installed for at least 3 months and my network card seemed to work just fine. In addition, this problem only started after a reboot after the installation of OpenVPN and failing to use it correctly. I understand that the problem lies in a configuration issue between with the network card and nothing else, I literally just need to know what I can do without the ability to install packages (using "dpkg -i" doesn't seem to work) What "network.cfg" do I have to fiddle with to regain internet access "pan" I believe is related to OpenVPN. I need the Expert who knows the things I don't, help please. What you've told me isn't working.
(OK, I'm just going to make this a full quote because I can already see where all this is heading.)
I stand corrected on anbox. Apparently it became usable recently.
You (rightly) didn't do what I told you, so it also can't be working.
Fact is, your ip route is wrong.
Mine looks like this:
Code:
ip route
default via 192.168.0.1 dev eth0 proto static
192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.10
Make yours something like that (the most important bit is the device - it should be either wlp2s0 or enp1s0).
This is not a unique problem, so a web search should provide you with the commands.
If that works - how to make it persistent - well I think Ubuntu uses some sort of net configuration software that I'm totally unfamiliar with.
But you've been pointed to Ubuntu docs already, I'm sure you can find sth there.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.