1
Users / Re: only one nic - still everything possible
« on: July 24, 2013, 05:20:07 pm »
I am not sure if it is the best solution to to have two subnets on the same VLAN (eth0). I have a VLAN capable wired switch and following is what i do:
1. Create two VLANs: VLAN 1 and VLAN 80 on the wired switch port
2. Plug LMCE's eth0 in to that port
3. Install vlan package on LMCE (apt-get install vlan)
4. Modify /etc/network/interfaces as follows
# --- External NIC ---
iface eth0 inet dhcp
pre-up sysctl -q -e -w net.ipv6.conf.eth0.disable_ipv6=1
# --- Internal NIC ---
iface eth0.80 inet static
address 192.168.80.1
netmask 255.255.255.0
pre-up sysctl -q -e -w net.ipv6.conf.eth0.80.disable_ipv6=1
#####
# Activating interfaces
#####
auto eth0 eth0.80 lo
5. In my case I actually have a two ethernet NICs, however i am running out of wired ports on my wired switch hence use just one. Since i have two ethernet NICs I had to do the following to avoid LMCE getting confused.
Navigate to sudo vim /etc/udev/rules.d/70-persistent-net.rules
Change the name eth1 to eth2
6. Reboot the LMCE. It should come up with two interfaces: eth0 and eth0.80. Since the wired switch is trunked with VLAN1 and VLAN 80, we essentially have two networks and all works well
1. Create two VLANs: VLAN 1 and VLAN 80 on the wired switch port
2. Plug LMCE's eth0 in to that port
3. Install vlan package on LMCE (apt-get install vlan)
4. Modify /etc/network/interfaces as follows
# --- External NIC ---
iface eth0 inet dhcp
pre-up sysctl -q -e -w net.ipv6.conf.eth0.disable_ipv6=1
# --- Internal NIC ---
iface eth0.80 inet static
address 192.168.80.1
netmask 255.255.255.0
pre-up sysctl -q -e -w net.ipv6.conf.eth0.80.disable_ipv6=1
#####
# Activating interfaces
#####
auto eth0 eth0.80 lo
5. In my case I actually have a two ethernet NICs, however i am running out of wired ports on my wired switch hence use just one. Since i have two ethernet NICs I had to do the following to avoid LMCE getting confused.
Navigate to sudo vim /etc/udev/rules.d/70-persistent-net.rules
Change the name eth1 to eth2
6. Reboot the LMCE. It should come up with two interfaces: eth0 and eth0.80. Since the wired switch is trunked with VLAN1 and VLAN 80, we essentially have two networks and all works well