Changes between Version 3 and Version 4 of Internal/SESMF


Ignore:
Timestamp:
May 15, 2017, 3:46:46 PM (8 years ago)
Author:
msherman
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Internal/SESMF

    v3 v4  
    606032767:  from all lookup default
    6161}}}
     62 * Tunnel setup
     63  * In native's home directory, there is a file {{{tunnel.sh}}}
     64  * This runs on boot, and sets up both L2TP tunnels to landing1, as well as routes.
     65  * This script is symlinked to from {{{/etc/init.d}}} and was set to run on boot with {{{update-rc.d tunnel defaults}}}
     66  * Contents of script:
     67{{{
     68#!/bin/bash
    6269
     70#sets up tunnel via terrestrial link
     71#remote ip for landing 1 is 128.6.192.147
     72#local IP for ses1 is ???.???.???.???
     73#ip address for tunnel to MF at Winlab is
     74#mf1.outdoor.orbit-lab.org 10.41.0.54
     75#ses1 10.41.0.55
     76#ses2 10.41.0.56
     77
     78modprobe l2tp_eth
     79#ground
     80ip l2tp del tunnel tunnel_id 1
     81ip l2tp add tunnel remote 128.6.192.147 local 23.24.73.161 \
     82        tunnel_id 1 peer_tunnel_id 5 udp_sport 3004 udp_dport 3004 encap udp
     83ip l2tp add session name ses_ground \
     84        tunnel_id 1 session_id 1 peer_session_id 1
     85ip link set ses_ground up mtu 1500
     86ip r add 128.6.192.147 via 23.24.73.166
     87ip addr add 10.100.200.55/16 dev ses_ground
     88ping 10.100.200.53 -c 10
     89
     90#satelite
     91ip l2tp del tunnel tunnel_id 2
     92ip l2tp add tunnel remote 128.6.192.147 local 216.226.242.242 \
     93        tunnel_id 2 peer_tunnel_id 6 udp_sport 3005 udp_dport 3005 encap udp
     94ip l2tp add session name ses_sat \
     95        tunnel_id 2 session_id 1 peer_session_id 1
     96ip link set ses_sat up mtu 1500
     97ip route add 128.6.192.147 via 216.226.242.241 table sat
     98ip rule add from 216.226.242.242/32 table sat
     99
     100#ip r add 128.6.192.147 via 216.226.242.241
     101
     102#ip addr add 10.100.200.55/16 dev ses_ground
     103#ping 10.100.200.54 -c 10
     104}}}
    63105
    64106= Desired Final Configuration =