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