close Warning: Can't synchronize with repository "(default)" (/common/SVN/wimax does not appear to be a Subversion repository.). Look in the Trac log for more information.

Changes between Initial Version and Version 1 of dSite/mConnectivity/eL2TP


Ignore:
Timestamp:
Feb 19, 2013, 1:03:45 AM (11 years ago)
Author:
seskar
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • dSite/mConnectivity/eL2TP

    v1 v1  
     1== L2TP Connectivity To GENI ==
     2
     3=== Installing the Prerequisite Software ===
     4
     5L2TP solution depends on two packages: '''vtun''' - virtual tunnel over TCP/IP, and '''bridge-utils''' - utilities for configuring Ethernet bridging. Both packages can be installed by using your favorite package manager. For example:
     6{{{
     7  apt-get install vtun bridge-utils
     8}}}
     9
     10=== Seting up the Tunnel ===
     11
     12 [[Image(TunnelConfig.jpg)]]
     13
     14Each tunnel has two servers as shown in Figure 1. landing1.orbit-lab.org is always assumed to be the '''master''' server while the other endpoint server is assumed to be the '''slave'''. Configuration files are somewhat different for the two servers and are described in following sections.
     15
     16==== Bridge Configuration ====
     17Bridge interfaces need to be configured on both ends in order to connect LAN segments to the tunnel. This is achieved by creating a bridge and attaching it to the interface facing the internal LAN. The tunnel interface will be added to the bridge by the VTUN daemon once it establishes the tunnel. One way to configure the bridge is to use /etc/network/interfaces configuration file and assign unique addresses on each end. For this example we will configure bridge on the master side with IP address of 10.43.0.253/16 and bridge on the slave side with 10.43.21.253/16
     18
     19'''/etc/network/interfaces''' on master
     20
     21{{{
     22  auto br0
     23  iface br0 inet static
     24}}}
     25
     26'''/etc/network/interfaces''' on slave
     27
     28{{{
     29  auto br0
     30  iface br0 inet static
     31}}}
     32==== VTUN Master Configuration ====
     33
     34'''/etc/default/vtun'''
     35{{{
     36RUN_SERVER=yes
     37SERVER_ARGS="-P 5000"
     38}}}
     39
     40Please note that server port numbers and password have to be coordinated with the Rutgers team.
     41
     42'''/etc/vtund.conf'''
     43{{{
     44#
     45# VTun - Virtual Tunnel over TCP/IP network.
     46# Copyright (C) 1998-2001  Maxim Krasnyansky <max_mk@yahoo.com>
     47#...
     48# Lines which begin with '#' are comments
     49
     50options {
     51    port 5000;            # Listen on this port.
     52
     53    # Syslog facility
     54    syslog        daemon;
     55
     56    # Path to various programs
     57    ifconfig      /sbin/ifconfig;
     58    route         /sbin/route;
     59    firewall      /sbin/iptables;
     60    ip            /sbin/ip;
     61}
     62
     63default {
     64    compress no;
     65    encrypt no;
     66    speed 0;
     67}
     68
     69landing1 {
     70    passwd XXXXXXXXX;
     71    type ether;
     72    proto udp;
     73    keepalive yes;
     74    compress no;
     75    encrypt no;
     76
     77    up {
     78        # Connection is Up
     79        ifconfig "%% up";
     80        program "brctl addif br0 %%";
     81    };
     82
     83    down {
     84        # Connection is Down
     85        ifconfig "%% down";
     86    };
     87}
     88}}}