LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-31-2016, 09:12 AM   #1
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,633

Rep: Reputation: Disabled
Can't connect to the net. DNS-problem?


Simple setup: PC with latest tumbleweed connected by ethernet-cable to router and then wireless to the net. Ping does not work. I looked at the NetworkManager:

Code:
PC:~ # systemctl status NetworkManager -l 
● NetworkManager.service - Network Manager 
**Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled; vendor preset: disabled) 
**Active: active (running) since Mon 2016-10-31 14:37:43 CET; 4min 1s ago 
****Docs: man:NetworkManager(8) 
Main PID: 1020 (NetworkManager) 
***Tasks: 3 (limit: 512) 
**CGroup: /system.slice/NetworkManager.service 
**********└─1020 /usr/sbin/NetworkManager --no-daemon 

Oct 31 14:41:08 PC NetworkManager[1020]: <info> *[1477921268.6353] device (enp3s0): state change: ip-check -> secondaries (reason 'none') [80 90 0] 
Oct 31 14:41:08 PC NetworkManager[1020]: <info> *[1477921268.6371] device (enp3s0): state change: secondaries -> activated (reason 'none') [90 100 0] 
Oct 31 14:41:08 PC NetworkManager[1020]: <info> *[1477921268.6373] manager: NetworkManager state is now CONNECTED_LOCAL 
Oct 31 14:41:08 PC NetworkManager[1020]: <info> *[1477921268.6383] manager: NetworkManager state is now CONNECTED_SITE ***********************************************
Oct 31 14:41:08 PC NetworkManager[1020]: <info> *[1477921268.6385] policy: set 'enp3s0' (enp3s0) as default for IPv4 routing and DNS *********************************
Oct 31 14:41:08 PC NetworkManager[1020]: <info> *[1477921268.6386] device (enp3s0): Activation: successful, device activated. ****************************************
Oct 31 14:41:08 PC NetworkManager[1020]: <info> *[1477921268.6403] connectivity: check for uri 'http://conncheck.opensuse.org' failed with 'Error resolving 'connchec
k.opensuse.org': Name or service not known' 
Oct 31 14:41:08 PC NetworkManager[1020]: <info> *[1477921268.6406] connectivity: check for uri 'http://conncheck.opensuse.org' failed with 'Error resolving 'connchec
k.opensuse.org': Name or service not known' 
Oct 31 14:41:08 PC NetworkManager[1020]: <info> *[1477921268.6409] connectivity: check for uri 'http://conncheck.opensuse.org' failed with 'Error resolving 'connchec
k.opensuse.org': Name or service not known' 
Oct 31 14:41:08 PC NetworkManager[1020]: <info> *[1477921268.6410] connectivity: check for uri 'http://conncheck.opensuse.org' failed with 'Error resolving 'connchec
k.opensuse.org': Name or service not known' 
PC:~ # *
I gave google's DNS adress (8.8.8.8) in the router to make sure that my provider's DNS is not broken. No joy. Right now I have no idea how to commence.

This is written on the same PC, just different OS (Leap 42.1).
 
Old 10-31-2016, 09:31 AM   #2
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Please post the output of the following commands:
Code:
ifconfig
route -n
Lets see if you have an ip address and your routing is setup correctly.

Maybe post the ping command you used and it's output also.
 
Old 10-31-2016, 11:50 AM   #3
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,633

Original Poster
Rep: Reputation: Disabled
Code:
PC:~> sudo ifconfig
root's password:
eth0      Link encap:Ethernet  Hardware Adresse 1C:6F:65:31:99:65  
          inet Adresse:192.168.178.20  Bcast:192.168.178.255  Maske:255.255.255.0
          inet6 Adresse: fe80::1e6f:65ff:fe31:9965/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1123 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1101 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 Sendewarteschlangenlänge:1000 
          RX bytes:566502 (553.2 Kb)  TX bytes:178962 (174.7 Kb)

lo        Link encap:Lokale Schleife  
          inet Adresse:127.0.0.1  Maske:255.0.0.0
          inet6 Adresse: ::1/128 Gültigkeitsbereich:Maschine
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 Sendewarteschlangenlänge:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
and
Code:
PC:~> sudo route -n                                                                                                                          
Kernel IP Routentabelle                                                                                                                               
Ziel            Router          Genmask         Flags Metric Ref    Use Iface                                                                         
0.0.0.0         192.168.178.1   0.0.0.0         UG    100    0        0 eth0                                                                          
192.168.178.0   0.0.0.0         255.255.255.0   U     100    0        0 eth0
I can't do the ping from here. From memory it was
Code:
ping heise.de 
host not found
Can you see anything wrong?

Last edited by JZL240I-U; 10-31-2016 at 12:26 PM.
 
Old 10-31-2016, 02:55 PM   #4
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Can you ping 193.99.144.80?

This is the IP arddress I get back doing a DIG for the host
Code:
; <<>> DiG 9.10.3-P4 <<>> heise.de
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27564
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4000
;; QUESTION SECTION:
;heise.de.                      IN      A

;; ANSWER SECTION:
heise.de.               3600    IN      A       193.99.144.80

;; Query time: 202 msec
;; SERVER: 10.5.32.169#53(10.5.32.169)
;; WHEN: Mon Oct 31 15:53:50 Eastern Daylight Time 2016
;; MSG SIZE  rcvd: 53
If this works then it is your DNS settings.
Post the contents of your resolv.conf file.
 
Old 11-01-2016, 02:47 PM   #5
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,633

Original Poster
Rep: Reputation: Disabled
Well, I'll be -- something or whatever. It is working again. I just booted this evening (and I did reboot yesterday) and now I can connect again and all. No idea why. I even made sure that this is really the tumbleweed installation, checking the history of the bash. All my in vain efforts documented there. Ohh, for the wonders of high tech.

Anyway, thanks for your help, lazydog, and for introducing me to "dig". New for me and that will be handy in the future I'm sure. Thanks, over and out.
 
Old 11-03-2016, 07:11 AM   #6
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Glad it is working for you now. Could have been the switch port you were connected to that stopped working too. You'll like DIG. It has many features to help you solve DNS issues.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] web browsers can't connect--- DNS problem? prudenc Linux - Networking 13 07-16-2010 04:49 AM
3 nics, connect to internet, share to local net, and connect to local net. Not workin linux-i386 Linux - Networking 2 09-15-2009 09:13 PM
Problem with reliance net connect usb on asus eee? msaroopa Linux - Newbie 7 11-03-2008 03:28 AM
DNS Problem - rndc: connect failed: connection refused krishvij Linux - Newbie 2 04-25-2005 07:40 AM
squid problem pcs unable to connect to net woods Linux - Networking 1 11-18-2004 02:21 PM

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

All times are GMT -5. The time now is 03:41 PM.

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