diff options
Diffstat (limited to 'recipes-connectivity/ipsec-demo/ipsec-demo/test_setkey/setup_right')
-rwxr-xr-x | recipes-connectivity/ipsec-demo/ipsec-demo/test_setkey/setup_right | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/recipes-connectivity/ipsec-demo/ipsec-demo/test_setkey/setup_right b/recipes-connectivity/ipsec-demo/ipsec-demo/test_setkey/setup_right new file mode 100755 index 0000000..f0e333e --- /dev/null +++ b/recipes-connectivity/ipsec-demo/ipsec-demo/test_setkey/setup_right | |||
@@ -0,0 +1,13 @@ | |||
1 | # board on right setup | ||
2 | set -v | ||
3 | ifconfig eth0 down | ||
4 | ifconfig eth0 hw ether 00:E0:0C:00:01:FD | ||
5 | ifconfig eth0 192.168.2.130 netmask 255.255.255.0 | ||
6 | ifconfig eth0 up | ||
7 | ifconfig eth1 down | ||
8 | ifconfig eth1 hw ether 00:E0:0C:00:00:FD | ||
9 | ifconfig eth1 200.200.200.20 netmask 255.255.255.0 | ||
10 | ifconfig eth1 up | ||
11 | arp -s 192.168.2.21 00:00:00:00:00:02 | ||
12 | route add default dev eth1 | ||
13 | echo 1 > /proc/sys/net/ipv4/ip_forward | ||