Warning Livedoc is no longer being updated and will be deprecated shortly. Please refer to https://documentation.tjhsst.edu.

Difference between revisions of "Debian container node setup"

From Livedoc - The Documentation Repository
Jump to: navigation, search
Line 35: Line 35:
 
ifup bond0
 
ifup bond0
 
service networking restart
 
service networking restart
 +
</pre>
 +
 +
On the switch (for Sirius specifically, pick the correct things):
 +
 +
<pre>
 +
conf t
 +
inter Po4
 +
switchport mode access
 +
switchport access vlan 1600
 +
no shutdown
 +
inter Gi1/0/12
 +
switchport mode access
 +
switchport access vlan 1600
 +
port-channel 4
 +
inter Gi1/0/13
 +
switchport mode access
 +
switchport access vlan 1600
 +
port-channel 4
 +
exit
 +
exit
 +
wr mem
 +
exit
 
</pre>
 
</pre>

Revision as of 12:09, 12 May 2015

This page is here to document what I'm doing on Sirius. This will eventually become a Salt state/Puppet manifest/Ansible playbook/whatever it is that we use now.

  • Debian can be installed by using the "debian" boot option from PXE, make sure you first remove eth0 from any port groups on the switch
apt-get install ifenslave

In /etc/network/interfaces:

auto lo
iface lo inet loopback

auto bond0
iface bond0 inet static
	address 198.38.17.61
	netmask 255.255.254.0
	gateway 198.38.17.254
	network 198.38.16.0
	slaves eth0 eth1
	bond-mode 802.3ad
	bond-miimon 100
	bond-downdelay 200
	bond-updelay 200
	dns-nameservers 198.38.16.40 198.38.16.41
	dns-search csl.tjhsst.edu

Reboot, or:

ifdown eth0
ifdown eth1
ifup bond0
service networking restart

On the switch (for Sirius specifically, pick the correct things):

conf t
inter Po4
switchport mode access
switchport access vlan 1600
no shutdown
inter Gi1/0/12
switchport mode access
switchport access vlan 1600
port-channel 4
inter Gi1/0/13
switchport mode access
switchport access vlan 1600
port-channel 4
exit
exit
wr mem
exit