#cat /xx/b.sh
ifconfig eth1 down
ifconfig eth1 192.168.0.1
route add 192.168.0.11 dev eth1
arp -i eth1 -s 192.168.0.11 00:0a:75:00:00:33
iptables -t nat -A POSTROUTING -s 192.168.0.1 -d 192.168.0.11 -j SNAT --to-source 192.168.0.11
iptables -t nat -A PREROUTING -s 192.168.0.11 -d 192.168.0.11 -j DNAT --to-destination 192.168.0.1
echo "ping -I 192.168.0.1 192.168.0.11"
#route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.0.11 0.0.0.0 255.255.255.255 UH 0 0 0 eth1
#arp
Address HWtype HWaddress Flags Mask Iface
192.168.0.11 ether 00:0a:75:00:00:33 CM