LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-24-2019, 09:55 PM   #1
WannabeMaestro
LQ Newbie
 
Registered: Jan 2019
Posts: 10

Rep: Reputation: Disabled
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.
 
Old 11-25-2019, 08:43 AM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,152
Blog Entries: 6

Rep: Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835
Is there a question?
You want to configure the network interface on an Ubuntu machine?

First look at the docs.
https://help.ubuntu.com/
https://docs.ubuntu.com/
https://help.ubuntu.com/lts/ubuntu-help/net.html.en

Does the machine have a fixed IP or gets one from a DHCP server?
What is the output of
ip addr
ip route

What IP address is the router at?

You need an IP, a route to the outside world, a DNS server.
The internet router will have to accessible from the buntu box. Look at your subnet mask.

Post your network managers config file.
 
Old 11-25-2019, 11:19 AM   #3
WannabeMaestro
LQ Newbie
 
Registered: Jan 2019
Posts: 10

Original Poster
Rep: Reputation: Disabled
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.
 
Old 11-25-2019, 12:37 PM   #4
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,152
Blog Entries: 6

Rep: Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835
I've never used buntu, your docs should give you info.

2: enp1s0: is your wired interface. And it is down. It either is unplugged or is set in down state.
https://help.ubuntu.com/lts/ubuntu-h...onnect.html.en
https://help.ubuntu.com/lts/ubuntu-h...manual.html.en

3: wlp2s0 is your wireless interface. And it has an IP6 address. Give it an IP4 address and you'll also probably need to configure the WPA key. Also check to see if you have an available DHCP lease on your router. If you have been troubleshooting, it is possible to continue to another lease over and over.
https://help.ubuntu.com/lts/ubuntu-h...onnect.html.en
https://help.ubuntu.com/lts/ubuntu-h...wepwpa.html.en
 
Old 11-28-2019, 10:42 PM   #5
WannabeMaestro
LQ Newbie
 
Registered: Jan 2019
Posts: 10

Original Poster
Rep: Reputation: Disabled
I dun goofed...

The wiki calls for using Gnome 3.

I uninstalled Gnome 3 and any Ubuntu related things a while back.

Help, I've tried to reinstalled Gnome 3 but I keep getting connection failures even when forcing ipv6!

It appears I must use the good ol' terminal, I gosh darned goofed.

Could I get some 'Buntu-Oriented CLI technique?

I hope for the best, good day.
 
Old 11-29-2019, 12:14 PM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Code:
"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.
 
Old 11-29-2019, 03:16 PM   #7
WannabeMaestro
LQ Newbie
 
Registered: Jan 2019
Posts: 10

Original Poster
Rep: Reputation: Disabled
...

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.
 
Old 11-30-2019, 01:41 AM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by WannabeMaestro View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
transitioning IPv4 router to dual IPv4/IPv6 psycroptic Linux - Networking 0 04-22-2014 01:44 AM
In tspc ipv6 tunnelling, does tunnel broker required for ipv4 to ipv4 communication? nyk.mat Linux - Newbie 2 08-13-2013 09:48 PM
Disabling IPv4 packet forwarding: net.ipv4.ip_forward = 0 (CentOS 5.5) troiwulful Red Hat 3 11-22-2010 11:04 AM
Disabled IPV4 in fc6 lindani Linux - Networking 1 09-25-2007 07:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration