How to make virtual interface ping to a host in the network
8,504
Dummy interfaces won't do anything until you make them part of a bridge.
As this is an old question and the asker is not explaining what he actually wants to achieve, and it's impossible to guess this, the question is difficult to answer.
The most straightforward way is to create a bridge on an ethernet interface etc., but then you could have just added the address to the ethernet interface in the first place.
Related videos on Youtube
Comments
-
MOHAMED over 1 year
I crated a virtual interface as indicated in this link.
sudo modprobe dummy sudo ip link set name eth10 dev dummy0 sudo ifconfig eth10 up sudo ifconfig eth10 192.168.1.150
now if I want to make a ping to a host in my network (
ping 192.168.1.133
), then the ping will not work.I tried to add
sysctl -w net.ipv4.conf.eth10.forwarding=1
But the ping does not work neither.
What should I have to add to make the ping works?
-
Kenster about 9 yearsYou say ping doesn't work. What specifically happens when you run ping? What error messages do you get?
-