diff options
author | Ting Liu <b28495@freescale.com> | 2014-07-24 15:48:17 +0800 |
---|---|---|
committer | Zhenhua Luo <zhenhua.luo@freescale.com> | 2014-07-29 17:25:30 +0800 |
commit | b113442a0ca749385b6321f810040bf8de43bc79 (patch) | |
tree | 283c22a246929ca800e749c598db4ecc79afffcb /meta-fsl-ppc/recipes-connectivity/ipsec-demo/ipsec-demo/test_setkey/setup_left | |
parent | e5a615e7793a5c7317302eb5a183685c0f1e116a (diff) | |
download | meta-freescale-b113442a0ca749385b6321f810040bf8de43bc79.tar.gz |
ipsec-demo (scripts and configuration files) add recipe
There are some ipsec demo scripts and configuration files for qoriq
boards. add a recipe to hold them.
Signed-off-by: Ting Liu <b28495@freescale.com>
Diffstat (limited to 'meta-fsl-ppc/recipes-connectivity/ipsec-demo/ipsec-demo/test_setkey/setup_left')
-rwxr-xr-x | meta-fsl-ppc/recipes-connectivity/ipsec-demo/ipsec-demo/test_setkey/setup_left | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/meta-fsl-ppc/recipes-connectivity/ipsec-demo/ipsec-demo/test_setkey/setup_left b/meta-fsl-ppc/recipes-connectivity/ipsec-demo/ipsec-demo/test_setkey/setup_left new file mode 100755 index 00000000..da769099 --- /dev/null +++ b/meta-fsl-ppc/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 | ||