Celeb Glow
updates | April 01, 2026

"Destination Host Unreachable" on ping [closed]

After network-manager could not connect to my router which has IP 192.168.1.1.

I set static ip for my interface. It connects but I cannot ping. I get "Destination host unreachable" whenever I ping from this particualar pc. I can ping and connect fine with same interface and router with my laptops when wired though.

I have set interface ip as:

auto eth0
iface eth0 inet static address 192.168.1.2 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.1.1

How can I make my pc connect with internet? Please Help

EDIT: ifconfigifconfig

ip routeip route

ethtoolethtool

traceroutetraceroute

The mii-tool one said unsupported.

12

1 Answer

  1. I assume that when you say 'connects' you mean link-up on the interface ports of your PC and router.
    However, I don't understand why that should happen only after you use static-IP -- maybe your interface was configured down initially.

  2. If your router IP is 192.168.1.1 it is very likely to be a Class-B subnet configuration.
    This means the netmask would be 255.255.0.0.
    By using a Class-C netmask and a network number of 192.168.1.0,
    you have placed your PC in a different subnet from your router.
    That would explain the ping unreachable case.

So, I think you should try with,

iface eth0 inet static address 192.168.1.2 netmask 255.255.0.0 network 192.168.0.0 broadcast 192.168.255.255 gateway 192.168.1.1 

You can check the physical connectivity with mii-tool.
It is part of the net-tools package.

3