How to configure VLAN network in RHEL 7 and CentOS 7

Dear friends Today we will see how to configure VLAN network in RHEL 7 and CentOS 7. For this tutorial I am using one physical host server where I am configuring VLAN base network. I have already configured switch with VLAN tag netowork . where I have allowed VLAN ID for this network.


You can see in below screen shot. I have installed RHEL 7 on physical server and currently I don’t have any network connectiviy on this server.

Now I am going to configure VLAN base network on this server. So first, we need to run nmtui from root user then we can get below windows.

After that you must Go to edit connection and select add like below screen shot: –

Then you have to select VLAN type of connection network and then go to create like below: –

After that you will get this window where you have to mention VLAN base information for VLAN network.

You have mentioned all mandatory parameters to compete VLAN base network, where profile name should your network profile name. Device should be your physical device name with VLAN ID. Here is my VLAN ID is 4090. One you inter device name like: – eno1.4090 then VLAN ID (4090) will automatically filled in VLAN id filed. Parent should be your physical server network port name.


IP address and subnet should be filled according to your network subnet. Here is my network subnet is you have to also mention Gateway to access this server from different network. You can also add DNS according to your network. After that you have to check in automatically connect and select ok button and press enter to compete VLAN base network.


Once all mandatory parameters completed save the configuration and exit the windows. Now we need to restart network service from root user and then check our network is created successfully or not?

If our network service will restart successfully then our network will be created successfully like below: –


You can see in above screen shot in yellow color we have successfully created VLAN base networking on RHEL 7 server.  Now we have a network connectivity on this server.

We can check our network connectivity with gateway ping like below: –

You can see in above snap shot we are able to ping our Gateway that means our VLAN base network is configured successfully.

Now we can also check our server from putty is it accessible or not? Let’s check and see.

You can see in above screen shot, we are able to access our server from putty.

That’s all we have successfully configured VLAN base network in RHEL 7 and CentOS 7.

Network configuration after CentOS 7 minimal installation

One Comment

  1. oprolevorter said:

    Sweet blog! I found it while browsing on Yahoo News. Do you have any tips on how to get listed in Yahoo News? I’ve been trying for a while but I never seem to get there! Appreciate it

    July 2, 2019

Leave a Reply

Your email address will not be published. Required fields are marked *