file /etc/network/interfaces:
auto lo
iface lo inet loopback
auto eth1
iface eth1 inet dhcp
auto eth0
iface eth0 inet static
address 192.168.10.1
netmask 255.255.255.255
up route add -host 192.168.10.12 dev eth0
down route del -host 192.168.10.12 dev eth0
auto eth2
iface eth2 inet static
address 192.168.10.2
netmask 255.255.255.255
up route add -host 192.168.10.13 dev eth2
down route del -host 192.168.10.13 dev eth2
Usuals commands:
# /etc/init.d/networing restart
# route -n
# tcpdump -i eth0 -xx -s1024 ether host 0:1:2:3:4:5
# tcpdump -i eth2 -xx -s1024 ether host 0:1:2:3:4:6
|