I have been struggling with a weird thing I have never seen in my life. My ethernet (tg3 driver) is not reachable from certain hosts on a network while it is visible from some others.
Just to clarify: I have a larger network (192.168.0.0/24, Network A) and a smaller one (192.168.44.0/24, Network B). My secondary router (192.168.44.1, Router B) is connected to the larger network, and my primary router (192.168.0.1, Router A) is connected to the internet. Ideally, I would use my CentOS station at Network B, but for testing purposes I tried to put it on Network A too. Both routers have a DHCP rule to set my the station's ethernet the .2-ending IP (and the Wi-Fi to the .3-ending IP, also in both routers).
The DHCP is working fine in both cases, meaning it can reach at some degree both routers. However, after the IP is attributed no communications between router and station will happen, pinging Router B doesn't work when connected to Network B. Pinging the station from the router gets the same results, as if it was disconnected.
But perhaps when I run the test from another station, it reaches and the networking works pretty fine. I am able to connect to services like httpd, sshd, and others, etc. I thought it could be a firewall-related issue, but it's not, as I tested stopping the firewalld service. I thought it could be the router, so I tested on Network B and still no communication to the router, and still communicating with other station.
I tried activating Wi-Fi, so I could run a full update (I'm running the latest CentOS release, 8.4.2105) and test it. After changing default gateway Wi-Fi works perfect at both networks. However, I'd rather prefer using ethernet as I have a better ethernet device than my Wi-Fi.
Some information:
ifconfig cmd output:
Code: Select all
[root@blackcat ~]# ifconfig
enp1s0f0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.44.2 netmask 255.255.255.0 broadcast 192.168.44.255
inet6 fe80::221a:6ff:fe55:1667 prefixlen 64 scopeid 0x20<link>
ether 20:1a:06:55:16:67 txqueuelen 1000 (Ethernet)
RX packets 3689 bytes 782775 (764.4 KiB)
RX errors 0 dropped 1 overruns 0 frame 0
TX packets 2682 bytes 281485 (274.8 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 18
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 3497 bytes 625089 (610.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3497 bytes 625089 (610.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.66.1 netmask 255.255.255.0 broadcast 192.168.66.255
ether 52:54:00:fe:f0:6a txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
virbr1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.166.49 netmask 255.255.255.224 broadcast 192.168.166.63
ether 52:54:00:b7:8e:90 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.44.3 netmask 255.255.255.0 broadcast 192.168.44.255
inet6 fe80::b2cf:4e35:84a1:14c9 prefixlen 64 scopeid 0x20<link>
ether 48:d2:24:75:ac:bc txqueuelen 1000 (Ethernet)
RX packets 3384 bytes 745553 (728.0 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 4377 bytes 654258 (638.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Code: Select all
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=dhcp
DEFROUTE=no
IPV4_FAILURE_FATAL=no
IPV6INIT=no
IPV6_AUTOCONF=no
IPV6_DEFROUTE=no
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp1s0f0
UUID=cfdf3faa-3cc2-43a6-989a-469f03b97018
DEVICE=enp1s0f0
ONBOOT=yes
PEERDNS=no
DNS1=192.168.44.2
DNS2=192.168.44.1
DNS3=192.168.0.1
ZONE=public
ifcfg-WLAN:
Code: Select all
ESSID="----------------------"
MODE=Managed
MAC_ADDRESS_RANDOMIZATION=default
TYPE=Wireless
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=TighterWLAN
UUID=9309b376-33f7-4040-970e-b520cd03ae7c
DEVICE=wlp2s0
ONBOOT=yes
KEY_MGMT=WPA-PSK
nmcli con output:
Code: Select all
NAME UUID TYPE DEVICE
WLAN 9309b376-33f7-4040-970e-b520cd03ae7c wifi wlp2s0
enp1s0f0 cfdf3faa-3cc2-43a6-989a-469f03b97018 ethernet enp1s0f0
virbr0 665196f2-d0ee-4912-97a2-51077dc45cfc bridge virbr0
virbr1 9ecb0875-f26e-41ad-ba43-81ce004dbaed bridge virbr1
Best regards,
Bruno Moreira-Guedes