New answers tagged ping
You cannot define eth0:0 as the origin of your ICMP packet with the pingcommand; as said in previous comments, the routing rules will be applied, and if routing to other networks, the eth0 address will be used. You can however, spoof an ICMP packet having eth0:0 IP address as origin with the hping3 command as in: sudo hping3 -1 220.127.116.11 -a 192.168.2.96 ...
As soon as you ping an address in your network 192.168.2.0/24 the eth0:0 address will be used as source. Otherwise, the Interface address of eth0 will be used.
Nooo You don't want to prevent all ICMP packets from being processed by the host. See: Filter all ICMP and watch the world burn (I think you want to assign the container a real IP address. Probably simplest using macvlan - given that you're not already using bridging on eth0. You create a macvlan attached to eth0 and assign it to the container. There'...
Per my setup, I had two systemd network unit files: one for the bridged adapter and one for the host-only adapter. I wanted the bridged adapter to have a dynamic address because the virtual machine is on a laptop that moves between networks, and I wanted the host-only adapter to have a static address so that I could access it, such as by ssh, without having ...
The domain .local is reserved for use by hosts that can be auto-discovered by the mdns protocol (broadcasts on the local network). You might get it working by installing and running avahi, or more simply by removing the mdns4_minimal [NOTFOUND=return] part from your nsswitch.conf. To test an address use eg getent hosts mywebserver.mydomain.local.
Top 50 recent answers are included