aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-connectivity/ipsec-demo/ipsec-demo/test_setkey/setup_left
blob: da76909965464e9d3c03bbac90fa936276c7fe96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# board on left setup
set -v
ifconfig eth0 down
ifconfig eth0 hw ether 00:04:9F:11:22:33
ifconfig eth0 192.168.1.130 netmask 255.255.255.0
ifconfig eth0 up
ifconfig eth1 down
ifconfig eth1 hw ether 00:E0:0C:00:7D:FD
ifconfig eth1 200.200.200.10 netmask 255.255.255.0
ifconfig eth1 up
arp -s 192.168.1.21 00:00:00:00:00:01
route add default dev eth1
echo 1 > /proc/sys/net/ipv4/ip_forward