Difference between revisions of "JLab Server"

From Teknologisk videncenter
Jump to: navigation, search
m (EtherChanel)
m (EtherChanel)
Line 6: Line 6:
 
==EtherChanel==
 
==EtherChanel==
 
Nic Bonding på Ubuntu er beskrevet her: https://help.ubuntu.com/community/LinkAggregation
 
Nic Bonding på Ubuntu er beskrevet her: https://help.ubuntu.com/community/LinkAggregation
 +
<pre>
 +
sudo aptitude install ifenslave
 +
</pre>
 +
sudo nano /etc/network/interfaces
 +
<pre>
 +
# This file describes the network interfaces available on your system
 +
# and how to activate them. For more information, see interfaces(5).
 +
 +
# The loopback network interface
 +
auto lo
 +
iface lo inet loopback
 +
 +
# The primary network interface
 +
auto eth0
 +
iface eth0 inet dhcp
 +
# This is an autoconfigured IPv6 interface
 +
iface eth0 inet6 auto
 +
 +
#Create the interface
 +
auto bond0
 +
iface bond0 inet static
 +
address 10.0.0.1
 +
netmask 255.255.255.0
 +
#Add physical network adapters
 +
bond-slaves eth1 eth2
 +
#Configure load balancing mode
 +
#mode=0 (balance-rr)
 +
#mode=1 (active-backup)
 +
#mode=2 (balance-xor)
 +
#mode=3 (broadcast)
 +
#mode=4 (802.3ad)
 +
#mode=5 (balance-tlb)
 +
#mode=6 (balance-alb)
 +
 +
bond_mode 2
 +
 +
</pre>
  
 
==VLans==
 
==VLans==

Revision as of 11:00, 22 December 2011

<accesscontrol>teacher</accesscontrol>

Ide

Ideen med denne server er at lave et Juniper Lab, med en logon server der giver kursisten adgang til et virtuelt netværk hvor der kan opsættes udstyr og prøves ting af i et test senarie.

Installation

EtherChanel

Nic Bonding på Ubuntu er beskrevet her: https://help.ubuntu.com/community/LinkAggregation

sudo aptitude install ifenslave

sudo nano /etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp
# This is an autoconfigured IPv6 interface
iface eth0 inet6 auto

#Create the interface
auto bond0
iface bond0 inet static
address 10.0.0.1
netmask 255.255.255.0
#Add physical network adapters
bond-slaves eth1 eth2
#Configure load balancing mode
#mode=0 (balance-rr)
#mode=1 (active-backup)
#mode=2 (balance-xor)
#mode=3 (broadcast)
#mode=4 (802.3ad)
#mode=5 (balance-tlb)
#mode=6 (balance-alb)

bond_mode 2

VLans

Vlan konfiguration står beskrevet her: http://www.mysidenotes.com/2007/08/17/vlan-configuration-on-ubuntu-debian/

Dokumentation