User Tools

Site Tools


cl-tutorial:second_b

Joining Community-Lab

Part of this process is covered here. However, we are reproducing all the steps with more detail.

Creating an account

The first step is to register yourself in the Community-Lab Controller. If you already have a registered user you can skip this step.

Browse to http://panel.community-lab.net and click on Create an account.

 Community-Lab panel

Fill in the registration form and press the sing up button.

 Registering new user

This confirmation message will appear:

 New user registered

You will receive an email to validate your account like the following:

Hi, welcome to panel.community-lab.net:
 
Please, validate your email using the link below:
 
http://panel.community-lab.net/accounts/activate/234c02ab7fcc9afce35bdd21de74d403c6ea0e49
 
You have 7 days remaining to activate your account.
 
Thanks!
The Community-lab operations team.

After you click on the link included in the email, the following user confirmation message will be shown:  User register confirmation

Finally, after clicking the home link, you will have full access to the Community-Lab dashboard.

 Community-Lab dashboard

Adding a computer to the management network

Every RD and sliver in Community-Lab belongs to an overlay IPv6 network called the Management Network (MN) that has been deployed using TINC VPN. If your workstation also joins the MN, it will be easier for you to interact with the slivers or nodes.

Joining the MN implies registering your workstation as a TINC host on the Controller and install, configure and start the TINC service on your machine.

You can register your workstation on the controller in the TINC Hosts tab.

 adding computer

Then, if you click the Help button you will also get some instructions like the following ones to configure your computer (please use the values shown in your help page instead of the sample ones given below):

Install dependencies

apt-get install tinc iproute

Create and configure the tinc network

# Create and configure the communitylab network
mkdir /etc/tinc/communitylab
 
echo 'Name = host_181
ConnectTo = server
ConnectTo = gateway_2' > /etc/tinc/communitylab/tinc.conf
 
mkdir /etc/tinc/communitylab/hosts
 
echo 'Subnet = fdf5:5351:1dfd:0:2000:0:0:b5
 
-----BEGIN RSA PUBLIC KEY-----
MIIBCgKCAQEA52/cQigKradtIHJkhSa08OSEkrharjhXFNwvHDoQRx0AsXUF+tOS
4ztFmLib8g5ZQWkYEDxC0Ou4PT/secQwbMz6DHY6B+T0XNdAex0f+Zg7RvoxXWb2
30dC/w5H3vcst83IB/DNKVoEaPYpFnJLI/p/OrzAWEIIi7tnhU6SZWCy/wVRDm3C
qUqMroNbxJBzAcfQpoo8mLSznUnGlp7dCUaRZq+tH4TJ0//V28l0roIS42T6WZjw
2YZJ2IGoN2+0YkHo1U4y1WMqnGbRQZ/MBq0ChNl4HK7jFj5DnohkwvGkp9E2KzSH
jnzW8Qax7bT4QS3h0x8bjMGIOc6lf+AWPQIDAQAB
-----END RSA PUBLIC KEY-----' > /etc/tinc/communitylab/hosts/host_181
 
echo 'Address = 10.228.207.8 655
Address = controller.community-lab.net 655
Subnet = fdf5:5351:1dfd:0:0:0:0:2
 
-----BEGIN RSA PUBLIC KEY-----
MIIBCgKCAQEApwotnfHT9RAmxnuaGEMdI3lYPYE4aaqSD9v4KbTh1E7Le3GNJQb7
wCpmDe8+n8S5Kp/gBEpWiYuvsVA/T4KseoX7NMcacP+DJMwjmNd9U58USn2vLz0Z
TMtXpc/FUhW5PZdgCiuNzw6IFgGn9ZCCv85jjUIW3KD8fUNdrUfVSv4olDoL9NkR
dTRg3Os/znC6l0gv/mqnLaqj2bJ/tx47kUmj6Oq13JuEq34T+DVmsUCFVundQnRp
c/vVEqQot7Rvj9UmSvTi4WKt/qxiAnyZf3gXOdrXvxfVTGzD5I/Xg+By+a4C2JwB
A5RGvZP3fyfhkCnnhFDpfws5lc20FA6ryQIDAQAB
-----END RSA PUBLIC KEY-----' > /etc/tinc/communitylab/hosts/server
 
echo 'Address = 10.162.0.15 656
Subnet = fdf5:5351:1dfd:0:1:0:0:2
 
-----BEGIN RSA PUBLIC KEY-----
MIIBCgKCAQEAy2u01qBIQ14i4QHiMIyZfXgWW+b85fIa5bjvCOz1NJn0bmA8IsED
tq+k4jiCi9ssVlDdqwmP1osUjE/2iLxhnDsrb5pIn1redAjlwn8x7Yl/mw8PO7MC
58C9YKpHuaR4FD+c9onHgGXKiR2J/ftNmNiNua8Amn1tXQEbqNHyaeDL2v/QJrR/
Ov6WBXCAfptH4oWjYxt7RpL2m+CMLyCe496GXGmXM9yQoD51C0XCy6ppLjtNvyqc
hA7+yev3XOR4eji7WMeig5YDB19+ID4xegABkzMLTXvTgBsnXXAWWfhR63EPPrVN
rRQ8Cr3y8Y4bb014YBNzAdvHWypDxX+DIwIDAQAB
-----END RSA PUBLIC KEY-----' > /etc/tinc/communitylab/hosts/gateway_2
 
# Create scripts for setting up and down the network interface
echo '#!/bin/sh
ip -6 link set "$INTERFACE" up mtu 1400
ip -6 addr add fdf5:5351:1dfd:0:2000::b5/48 dev "$INTERFACE"
' > /etc/tinc/communitylab/tinc-up
 
echo '#!/bin/sh
ip -6 addr del fdf5:5351:1dfd:0:2000::b5/48 dev "$INTERFACE"
ip -6 link set "$INTERFACE" down
' > /etc/tinc/communitylab/tinc-down
 
# Make the scripts executable
chmod a+rx /etc/tinc/communitylab/tinc-{up,down}

Generate the key and upload it to the server

# Generate the RSA key pair for your host
tincd -n communitylab -K

Now you have to upload your public key to your host page. You can find the key at the end of /etc/tinc/communitylab/hosts/host_<HOST_ID> file. Copy and paste it in the corresponding space and click the save and continue editing button.

 upload key

Start tinc daemon

# Enable communitylab network to automatically start on boot
echo communitylab >> /etc/tinc/nets.boot
 
# Restart the tinc service in order to apply the new configuration
/etc/init.d/tinc restart
 
# Try if your connection is working by ping the server
ping6 fdf5:5351:1dfd::2

Here you can find more details about the activation of TINC on your computer.

With a working TINC connection you should see your host address in green. It means that the controller can ping your workstation, and you can ping or SSH other nodes using their IPv6 address in the MN.  Working Tinc Connection

Getting support

Please, go to this page if you want to find out how to get support.

Click here to go to the next section of this part of the tutorial or click the next link if you rather want to go back to the Tutorials Main Page.

cl-tutorial/second_b.txt · Last modified: 2015/10/20 12:52 by ivilata