OpenVZ Forum


Home » General » Support » Openvz + bonding + vlan tagged howto (using ip address from a vlan over bonding)
Openvz + bonding + vlan tagged howto [message #51567] Wed, 30 July 2014 15:00
psilva is currently offline  psilva
Messages: 1
Registered: July 2014
Junior Member
From: *iia.cl
Dear Colleagues

      I'm trying to configure a virtual server with openvz, so that server ip occupy a vlan is going through a bonding.

      On the host, perform the work of creating a VLAN using a bonding, but do not understand how to make the virtual machine is assigned an IP, and that is visible not only from the host only network, I guess I have issues routing in between ...

     Grateful to his instructions, I copy the my configurations

- Paul

cat ifcfg-bond0
DEVICE=bond0
ONBOOT=yes

--------------
ifcfg-bond.204
VLAN=yes
VLAN_NAME_TYPE=VLAN_PLUS_VID_NO_PAD
DEVICE=vlan204
PHYSDEV=bond0
BOOTPROTO=static
ONBOOT=yes
TYPE=Ethernet

--------------
cat ifcfg-eth1
# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
DEVICE=eth1
TYPE=Ethernet
USERCTL=no
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
ONBOOT=yes

------------

cat ifcfg-eth2
# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
DEVICE=eth2
TYPE=Ethernet
USERCTL=no
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
ONBOOT=yes

-------------

# RAM
PHYSPAGES="0:524288"

# Swap
SWAPPAGES="0:131072"

# Disk quota parameters (in form of softlimit:hardlimit)
DISKSPACE="2306048:2306048"
DISKINODES="131072:144179"
QUOTATIME="0"

# CPU fair scheduler parameter
CPUUNITS="1000"

NETFILTER="stateless"
VE_ROOT="/vz/root/$VEID"
VE_PRIVATE="/vz/private/$VEID"
OSTEMPLATE="centos-6-x86_64"
ORIGIN_SAMPLE="vswap-1g"
HOSTNAME="test"
ONBOOT="yes"
NETIF=" ifname=bond.204,mac=00:18:51:44:F6:8D,host_ifname=veth113.20 4,host_mac=00:18:51:6B:69:E2 "
NAMESERVER="10.200.a.b"
IP_ADDRESS="10.200.e.f"
PRIVVMPAGES="unlimited"
CPUS="2"
CPULIMIT="100"


echo "1" /proc/sys/net/ipv4/conf/veth113.204/proxy_arp
echo "1" > /proc/sys/net/ipv4/conf/veth113.204/proxy_arp
echo "1" > /proc/sys/net/ipv4/conf/veth113.204/forwarding
echo "1" > /proc/sys/net/ipv4/conf/vlan204/forwarding
echo "1" > /proc/sys/net/ipv4/conf/vlan204/proxy_arp
Previous Topic: What is the difference between no minimal and minimal?
Next Topic: Cant install kernel on gentoo
Goto Forum:
  


Current Time: Tue Jul 16 20:40:21 GMT 2019