configuring network route
today I tried to configure a network route to a host for testing my network interface.
As I have to eth interfaces and both interface got their IP from DHCP (192.168.1.11 and 192.168.1.12) and are in the same subnet, I shut the other interface down:
route add 192.168.1.15 eth0
Then I tried to test the interface by doing a ping to 192.168.1.15.
When I unplug the cable from eth0 (and eth1 is still plugged) the ping still works. Somehow my linux (it's debian) powers up again eth0 and pings over this port.
How can I stop my linux doing this. I just want to have the route added only on the one interface - not the other.
Is it maybe some case of a default-gateway?
Thanks for your help.