Page 1 of 1

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

Posted: 2022/08/07 08:54:26
by dexterdev
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

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

Posted: 2022/08/08 12:14:39
by BShT
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

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

Posted: 2022/08/08 15:39:02
by dexterdev
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.

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

Posted: 2022/08/08 18:03:40
by BShT
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

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

Posted: 2022/08/09 09:00:35
by dexterdev
/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.

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

Posted: 2022/08/11 18:23:09
by BShT
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

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

Posted: 2022/08/13 15:47:37
by dexterdev
Can you at least point out some resources or share commands to do this?

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

Posted: 2022/08/13 18:41:26
by TrevorH
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.

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

Posted: 2022/08/14 06:18:10
by dexterdev
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?