I have CentOS 6.8 running in a Parallels VM. eth0 is bridged to the Ethernet adapter in the Mac. I need the CentOS server running a specific VLAN (10), so I have read this RHEL documentation.

eth0 pulls a DHCP address (for the moment) and I can ping the equipment on the untagged network OK from within the VM. I have tried the following with eth0 set static and not assigning it an address, but without a difference for the VLAN accessibility.

However, when I setup an ifcfg-eth0.10 with


I am unable to ping anything on VLAN 10, including other virtual interfaces on the Mac host. If, however, I do this (as documented here):

ip link add link eth0 name eth0.10 type vlan id 10

followed by

ip addr add dev eth0.10

I am immediately able to use the interface as expected. That's great! But I need the VLAN interface to persist after a restart. What am I doing wrong?


For persisted VLAN you need to setup 802.1Q VLAN tagging using ifcfg files

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.