wiki:network_troubleshooting
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| wiki:network_troubleshooting [2023/05/09 14:55] – created antisa | wiki:network_troubleshooting [2025/12/17 12:20] (current) – add ip tags, network unreachable and service not known examples antisa | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | {{tag> | + | {{tag> |
| ====== network troubleshooting ====== | ====== network troubleshooting ====== | ||
| Line 11: | Line 11: | ||
| ip addr del 2a01: | ip addr del 2a01: | ||
| - | ====== Tested | + | ===== Wired ethernet turns off and on constantly |
| - | | + | dmesg log: |
| - | ====== See also ====== | + | < |
| + | ~$ sudo dmesg -H -w | ||
| + | ... | ||
| - | ====== | + | [pro15 19:12] RTL8226B_RTL8221B 2.5Gbps PHY r8169-0-2a00: |
| + | [ +0,000012] r8169 0000: | ||
| + | [ +2,048824] r8169 0000: | ||
| + | [ +8,959020] RTL8226B_RTL8221B 2.5Gbps PHY r8169-0-2a00: | ||
| + | [ +0,000014] r8169 0000: | ||
| + | [ +0,163394] r8169 0000: | ||
| + | [ +1,240247] audit: type=1107 audit(1702663934.240: | ||
| + | | ||
| + | [ +7,588296] RTL8226B_RTL8221B 2.5Gbps PHY r8169-0-2a00: | ||
| + | [ +0,000013] r8169 0000: | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | [ +1,259109] r8169 0000: | ||
| + | [ +8,866622] RTL8226B_RTL8221B 2.5Gbps PHY r8169-0-2a00: | ||
| + | [ +0,000013] r8169 0000: | ||
| + | [ +0,047328] r8169 0000: | ||
| + | [ +8,784982] RTL8226B_RTL8221B 2.5Gbps PHY r8169-0-2a00: | ||
| + | [ +0,000012] r8169 0000: | ||
| + | [ +0,214446] r8169 0000: | ||
| + | [ +11,364429] r8169 0000: | ||
| + | [ +0,000016] IPv6: ADDRCONF(NETDEV_CHANGE): | ||
| + | [ +0,500115] r8169 0000: | ||
| + | ... | ||
| + | </ | ||
| + | |||
| + | Check the cabling. Plug/unplug the cables from the router and other devices. After this the problem was resolved. | ||
| + | |||
| + | ===== ping: google.com: Name or service not known ===== | ||
| + | |||
| + | Check your ''/ | ||
| + | |||
| + | If that seems fine, then it might a symptom of the below problem. | ||
| + | |||
| + | ===== connect: Network is unreachable ===== | ||
| + | Happens when pinging an IP address. | ||
| + | |||
| + | Most likely an issue with a missing route. | ||
| + | Check with '' | ||
| + | |||
| + | Here's an example of missing route on a VM server with assigned IPs to the //eth0// interface already. | ||
| + | |||
| + | < | ||
| + | # ip a | ||
| + | 1: lo: < | ||
| + | link/ | ||
| + | inet 127.0.0.1/8 scope host lo | ||
| + | | ||
| + | inet6 ::1/128 scope host | ||
| + | | ||
| + | 2: eth0: < | ||
| + | link/ether 02: | ||
| + | inet 198.50.177.218/ | ||
| + | | ||
| + | inet6 2607: | ||
| + | | ||
| + | inet6 fe80:: | ||
| + | | ||
| + | ... | ||
| + | |||
| + | # ip r | ||
| + | 10.0.1.0/24 dev tun1 proto kernel scope link src 10.0.1.79 | ||
| + | 169.254.0.0/ | ||
| + | 172.17.0.0/ | ||
| + | ... | ||
| + | |||
| + | |||
| + | # ip -6 r | ||
| + | unreachable ::/96 dev lo metric 1024 error -113 pref medium | ||
| + | unreachable :: | ||
| + | ... | ||
| + | default via 2607: | ||
| + | default via 2607: | ||
| + | ... | ||
| + | [root@xor1 NetworkManager]# | ||
| + | |||
| + | </ | ||
| + | |||
| + | In above output ipv4 is missing a default route, and ipv6 is ok. | ||
| + | |||
| + | To fix this case you would run: | ||
| + | |||
| + | < | ||
| + | # ip route add 66.70.179.0/ | ||
| + | # ip route add default via 66.70.179.53 | ||
| + | # ping 8.8.8.8 | ||
| + | PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. | ||
| + | 64 bytes from 8.8.8.8: icmp_seq=1 ttl=113 time=1.31 ms | ||
| + | ... | ||
| + | </ | ||
| + | |||
| + | You have to know the gateway IP, 66.70.179.53 above, then add a direct route to that because any gateway must be reachable directly on connected interfaces. This gateway IP is actually a bridge '' | ||
| + | |||
| + | ====== See also ====== | ||
| + | * [[wiki: | ||
| + | * [[add_additional_ip_address_interface|Add additional ip address on interface]] | ||
| + | ====== References ====== | ||
| + | * https:// | ||
wiki/network_troubleshooting.1683644155.txt.gz · Last modified: by antisa
