How to Create VLAN Interface for RHEV Virtualization
Read Time:1 Minute, 28 Second

How to Create VLAN Interface for RHEV Virtualization

0 0
0 0

While we doing some initial configuration for Red Hat Virtualization, Ovirt Virtualization, OpenStack we required to configure interfaces using the Non-Persistent method. To do that we can go through the below step by step guides.

Here we are using VLAN 18 and two NICs need to be bonded under a single VLAN.

First, enable the bonding type using the modprobe command.

modprobe bonding mode=4

Confirm whether the required bonding type has been assigned.

cat /proc/net/bonding/*

Bring UP the bond0 interface to UP state.

ip link set dev bond0 up

Add the available interfaces to the existing bond interface as slaves.

ifenslave bond0 enp2s0f1
ifenslave bond0 enp129s0f1

To confirm the same run below command, We should get two interfaces as slaves under bond0.

cat /proc/net/bonding/bond0

Add the VLAN interface using VLAN ID 18

ip link add link bond0 name bond0.18 type vlan id 18

Add an IP for VLAN interface by following bring up the VLAN interface to UP state.

ip addr add 192.168.1.150/24 dev bond0.18

ip link set dev bond0.18 up

Add a route to reach 192.168.1.x network from any other servers.

ip route add default via 192.168.1.254

Steps to verify.

ip addr show bond0.18
ip r
ip -s -d link show dev bond0.18

We have done with configuring NON-Persistent IP for a VLAN interface by Bonding two interfaces.

Once we reboot the server this configuration will be discarded.To make it persistent under virtualization environment we need to configure those NIC from RHEV Console or from Ovirt-Console.

To make it persistent under virtualization environment we need to configure those NIC from RHEV Console or from Ovirt-Console.

How to Create VLAN Interface for RHEV Virtualization 1

About Post Author

Babin Lonston

Overall 14+ Years of experience in the IT field, currently working as a Senior Linux administration with Virtualization & Cloud. Being numismatist for a long time.
Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %

Average Rating

5 Star
0%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%

Leave a Reply

Your email address will not be published.

Previous post How to setup NFS share in Oracle Solaris 10
Linux KickStart golden Image Next post How to create a Custom Linux ISO Image with a kickstart file

Subscribe

Subscribe To Our Newsletter

Subscribe To Our Newsletter

Join our mailing list to receive the latest news and updates from our team.

We promise not to spam you, and we don't usually send more than one email a week.

You have Successfully Subscribed!