| 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 | |
| 78 | modprobe l2tp_eth |
| 79 | #ground |
| 80 | ip l2tp del tunnel tunnel_id 1 |
| 81 | ip 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 |
| 83 | ip l2tp add session name ses_ground \ |
| 84 | tunnel_id 1 session_id 1 peer_session_id 1 |
| 85 | ip link set ses_ground up mtu 1500 |
| 86 | ip r add 128.6.192.147 via 23.24.73.166 |
| 87 | ip addr add 10.100.200.55/16 dev ses_ground |
| 88 | ping 10.100.200.53 -c 10 |
| 89 | |
| 90 | #satelite |
| 91 | ip l2tp del tunnel tunnel_id 2 |
| 92 | ip 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 |
| 94 | ip l2tp add session name ses_sat \ |
| 95 | tunnel_id 2 session_id 1 peer_session_id 1 |
| 96 | ip link set ses_sat up mtu 1500 |
| 97 | ip route add 128.6.192.147 via 216.226.242.241 table sat |
| 98 | ip 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 | }}} |