I have a router where its interface has two IPs
$ ip addr
br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether <MA> brd ff:ff:ff:ff:ff:ff
inet 192.168.3.1/24 brd 192.168.3.255 scope global br-lan
valid_lft forever preferred_lft forever
inet 192.168.3.2/24 brd 192.168.3.255 scope global secondary br-lan
valid_lft forever preferred_lft forever
Dnsmasq is listening on both IPs, which I can confirm by querying to either 192.168.3.1
and 192.168.3.2
on the router, and I would get answers back.
However, my client (192.168.3.100) connected to the router with a wire, can query only 192.168.3.1
and get answers back. When querying to 192.168.3.2
, the router returns "port unreachable" ICMP error, yet it's able to ping 192.168.3.2
and get responses.
What might be the reason for ICMP error?