#cat a.sh
ifconfig eth0 192.168.1.1
ifconfig eth1 192.168.1.2
route add 192.168.1.11 dev eth0
route add 192.168.1.22 dev eth1
arp -i eth0 -s 192.168.1.11 00:0a:75:00:00:33
arp -i eth1 -s 192.168.1.22 00:0a:75:00:00:32
iptables -t nat -F
iptables -t nat -A POSTROUTING -s 192.168.1.1 -d 192.168.1.11 -j SNAT --to-source 192.168.1.22
iptables -t nat -A PREROUTING -s 192.168.1.22 -d 192.168.1.11 -j DNAT --to-destination 192.168.1.2
iptables -t nat -A POSTROUTING -s 192.168.1.2 -d 192.168.1.22 -j SNAT --to-source 192.168.1.11
iptables -t nat -A PREROUTING -s 192.168.1.11 -d 192.168.1.22 -j DNAT --to-destination 192.168.1.1
// how to use
ping -I 192.168.1.1 192.168.1.11
#route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.16