Can't see printers on the network, ping command not working in Centos 8 stream

Issues related to applications and software problems and general support
Post Reply
dexterdev
Posts: 15
Joined: 2022/08/05 13:16:04

Can't see printers on the network, ping command not working in Centos 8 stream

Post by dexterdev » 2022/08/07 08:54:26

Hi all,
I am new to centOS and the only reason I ended up in this OS was out of frustrations because of failed CUDA/tensorflow installations in Ubuntu and Linux. I saw that my HPC server in university which has GPU support runs centOS and so tried it. It maybe very immature from side, but I installed tensorflow-gpu very smoothly. But I am having many other issues. Solving it one by one:

Code: Select all

ping www.google.com
is not working at all!
Also, I can't access printers in the network here. It doesn't even detect any network printer. Ubuntu used to at least show my printers.

What should I do?

Also dig command gives this:

Code: Select all

$ dig ns.google.com @8.8.8.8

; <<>> DiG 9.11.36-RedHat-9.11.36-4.el8 <<>> ns.google.com @8.8.8.8
;; global options: +cmd
;; connection timed out; no servers could be reached

BShT
Posts: 584
Joined: 2019/10/09 12:31:40

Re: Can't see printers on the network, ping command not working in Centos 8 stream

Post by BShT » 2022/08/08 12:14:39

seems you don´t have a network interface configured

run

# ip addr show

to see if you have an IP address

then

# route -n

to see if you have a route

dexterdev
Posts: 15
Joined: 2022/08/05 13:16:04

Re: Can't see printers on the network, ping command not working in Centos 8 stream

Post by dexterdev » 2022/08/08 15:39:02

BShT wrote:
2022/08/08 12:14:39
seems you don´t have a network interface configured

run

# ip addr show

to see if you have an IP address

then

# route -n

to see if you have a route

Code: Select all

# ip addr show
results snipped for security reasons

Code: Select all

# route -n
results snipped for security reasons
Please let me know what I should I do.
Last edited by dexterdev on 2022/08/09 08:57:33, edited 1 time in total.

BShT
Posts: 584
Joined: 2019/10/09 12:31:40

Re: Can't see printers on the network, ping command not working in Centos 8 stream

Post by BShT » 2022/08/08 18:03:40

first, do not post public IPs

second, seems you have an IP and route

then look at /etc/resolv.conf if you have a DNS server there

dexterdev
Posts: 15
Joined: 2022/08/05 13:16:04

Re: Can't see printers on the network, ping command not working in Centos 8 stream

Post by dexterdev » 2022/08/09 09:00:35

/etc/resolv.conf results are like this:

Code: Select all

# Generated by NetworkManager
search xxx.xx.xx yyyy.yyy.yy.yy.yy zzzz.zz.zz.zz.zz
nameserver xxx.xx.xxx.46
nameserver xxx.xx.xxx.45
The results are like above. I have replaced IPs and some address with x,y,z stuff.

BShT
Posts: 584
Joined: 2019/10/09 12:31:40

Re: Can't see printers on the network, ping command not working in Centos 8 stream

Post by BShT » 2022/08/11 18:23:09

if your DNS server is responsive and you have an IP then look at route, test if you ping your gateway and DNS, look again if your network configuration is ok

dexterdev
Posts: 15
Joined: 2022/08/05 13:16:04

Re: Can't see printers on the network, ping command not working in Centos 8 stream

Post by dexterdev » 2022/08/13 15:47:37

Can you at least point out some resources or share commands to do this?

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Can't see printers on the network, ping command not working in Centos 8 stream

Post by TrevorH » 2022/08/13 18:41:26

Start by checking if your network interface is up. On CentOS versions from 6 to 8, the default is to not bring up the network interface post-install unless it was used to perform the install. You have to change it to come up automatically.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

dexterdev
Posts: 15
Joined: 2022/08/05 13:16:04

Re: Can't see printers on the network, ping command not working in Centos 8 stream

Post by dexterdev » 2022/08/14 06:18:10

Hi Trevor,

Code: Select all

$ ip a show eno1 up
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 50:eb:f6:95:8c:0e brd ff:ff:ff:ff:ff:ff
    altname enp0s31f6
    inet IP.IP.IP.IP/22 brd xx.yy.zz.255 scope global dynamic noprefixroute eno1
       valid_lft 67821sec preferred_lft 67821sec
    inet6 fe80::52eb:f6ff:fe95:8c0e/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
edited IPs. This means my network is up, right?

Post Reply