E
eg1l
Guest
Hi.
I have tried searching and applying various network configurations, but none of my configurations are working for my needs.
My network consists of multiple VLANs trunked to all my hosts, including the management VLAN.
The hosts have 2x1GB nic, that I want bonded.
This is my setup: VLAN(85, 202, 300, 301, 302) -> HOST (eth0, eth1->bond0)
What I want is to be able to:
This is my current config:
My question is, how can I assign a IP to the host on vlan 300, and also be able to tag it to a VM?
I have tried searching and applying various network configurations, but none of my configurations are working for my needs.
My network consists of multiple VLANs trunked to all my hosts, including the management VLAN.
The hosts have 2x1GB nic, that I want bonded.
This is my setup: VLAN(85, 202, 300, 301, 302) -> HOST (eth0, eth1->bond0)
What I want is to be able to:
- One IP for the host on the management vlan 85
- One IP for the host on the private vlan 300
- Tag one VLAN 300, 301 etc to a VM
This is my current config:
Code:
auto lo
iface lo inet loopback
# Bond0 slave 0
iface eth0 inet manual
# Bond0 slave 1
iface eth1 inet manual
auto bond0
iface bond0 inet manual
slaves eth0 eth1
bond_miimon 100
bond_mode 802.3ad
bond-lacp-rate 0
pre-up ip link set eth0 mtu 9000
pre-up ip link set eth1 mtu 9000
up ip link set bond0 mtu 9000
# Management IP in VLAN 885
auto vmbr0
iface vmbr0 inet static
address 192.168.1.79
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 8.8.8.8
bridge_ports bond0
bridge_stp off
bridge_fd 0
bridge_maxage 0
bridge_ageing 0
bridge_maxwait 0
# iSCSI/NFS vlan 202
auto bond0.202
iface bond0.202 inet manual
vlan-raw-device bond0
auto vlbr202
iface vlbr202 inet static
address 10.0.2.13
netmask 255.255.255.240
bridge_ports bond0.202
bridge_stp off
bridge_fd 0
bridge_maxage 0
bridge_ageing 0
bridge_maxwait 0
# Public vlan 300 (internal server)
auto bond0.300
iface bond0.300 inet manual
vlan-raw-device bond0
My question is, how can I assign a IP to the host on vlan 300, and also be able to tag it to a VM?