VLan configuration

  • Thread starter Thread starter hello012
  • Start date Start date
H

hello012

Guest
I just installed Proxmox but have problem in configure VLANs.

My machine has only 1 network port. It is attached to a switch with Truck mode.

What I want to do is,
1. VLAN 1, fixed IP for host machine
2. VLAN 7, DHCP for all guest machines

I can do the same configurations on CentOS KVM.

Can someone help me to config it on Proxmox ?

Many thanks.
 
What do you mean with Truck mode? Do you mean Trunk?
If yes, how will you do a trunk with one nic?

Code:
# Physical Interfaces
auto lo
iface lo inet loopback
iface eth0 inet manual
iface eth1 inet manual

# 802.3ad

iface bond0 inet manual	slaves eth0 eth1
	bond_miimon 100
	bond_mode 4


# VLANS
auto bond0.101
iface bond0.101 inet manual
	vlan-raw-device bond0


auto bond0.102
iface bond0.102 inet manual
	vlan-raw-device bond0



#Bridges
auto vmbr0
iface vmbr0 inet static
	address 10.0.8.101
        netmask 255.255.255.0
        gateway 10.0.8.1
	bridge_ports bond0.102
	bridge_stp off
	bridge_fd 0


auto vmbr1
iface vmbr1 inet manual
	bridge_ports bond0.101
	bridge_stp off
	bridge_fd 0

The first bridge must have an ip address or you give eth0 an ip address.