Help With Network Configuration Files

Home » CentOS » Help With Network Configuration Files
CentOS No Comments

Hello,

I’m trying to configure a CentOS 7 server to act as a host for a bunch of virtual servers (KVM). I have an 802.3ad bonded Ethernet connected to the server with a bunch of tagged VLANs. I want to be able to build a bridge interface on the server for each VLAN and then attach that to the bond interface and the virtual clients. I also want to attach a host interface to one of the VLANs for access to the host from my Infrastructure network.

I have everything working but the host interface, What device do I put into ifcfg-VLAN-OOB to create a new software only interface.

Here is what I have so far.

EM1-4 are configured as slaves to BOND0

ifcfg-em1:

TYPE=Ethernet USERSTL=no MASTER=bond0
NAME=em1
UUID=0ca45a64-70eb-4bfb-bf73-90b221d5fa65
DEVICE=em1
ONBOOT=yes SLAVE=yes

ifcfg-em2:

TYPE=Ethernet NAME=em2
UUID=d79cc76a-8f38-460c-9430-2ae78b43dc1d DEVICE=em2
ONBOOT=yes MASTER=bond0
USERCTL=no SLAVE=yes

ifcfg-em3:
TYPE=Ethernet NAME=em3
UUID=9f7cf127-eba2-45e8-95bd-814e6066aa74
DEVICE=em3
ONBOOT=yes MASTER=bond0
USERCTL=no SLAVE=yes

ifcfg-em4

TYPE=Ethernet NAME=em4
UUID=53517fa5-9e22-4286-a367-8c91ef6f1883
DEVICE=em4
ONBOOT=yes MASTER=bond0
USERCTL=no SLAVE=yes

ifcfg-bond0:
DEVICE=bond0
NAME=bond0
TYPE=bond BONDING_MASTER=yes ONBOOT=yes BONDING_OPTS=”mode=802.3ad miimon=10 lacp_rate=1″
USERCTL=no

Bond0 is up, the switch & server are happy all 4 links are live, no errors

I created a new bridge:

ifcfg-br0:

DEVICE=br1
TYPE=BRIDGE
ONBOOT=yes NAME=br1

I created a VLAN interface on bond0 and attached it to the bridge

ifcfg-bond0.77:

DEVICE=bond0.77
BOOTPROTO=none ONBOOT=yes VLAN=yes TYPE=Vlan PHYSDEV=bond0
VLAN_ID=77
NAME=”Vlan bond0.77″
BRIDGE=br1
UUID=d91d518a-cf03-555f-9837-ef2d2763218b

Now,

How do I create a new interface ‘VLAN-OOB’, attach it to the bridge and assign an IP address?

ifcfg-VLAN-OOB:
DEVICE=????????
BOOTPROTO=none ONBOOT=yes NETWORK=10.126.77.0
IPADDR=10.126.77.2
PREFIX=24
GATEWAY=10.126.77.1
DNS1=66.59.48.85
DNS2=66.59.48.86
DOMAIN=crocker.com DEFROUTE=yes NAME=“OOB Management VLAN”
BRIDGE=br1

I want to be able to attach virtual-client interfaces to br1 so they can be on the same network. Eventually I’ll have a dozen bridges with different networks (Internet, VOIP, OOB, Backup, etc)

Thanks

-Matt


Matthew Crocker President – Crocker Communications, Inc. Managing Partner – Crocker Telecommunications, LLC
E: matthew@corp.crocker.com E: matthew@crocker.com

LEAVE A COMMENT