Vlans using nmtui

Issues related to configuring your network
Post Reply
mervgh
Posts: 5
Joined: 2015/08/15 21:50:51

Vlans using nmtui

Post by mervgh » 2015/08/15 22:50:46

I have been trying to create a vlan on my new Centos 7 build using nmtui and I am really confused.
Firstly I set up a static ip on my network card in nmtui see attached image.
I then tried adding a vlan
I set another ip on the vlan
so now I have ens160 and vlan and both set to active.

I am not sure what setting needs to change for it to work, any help appreciated. Please attached screenshots
Network file with static ip
Network file with static ip
Network.PNG (75.7 KiB) Viewed 14022 times
create vlan
create vlan
createVlan.PNG (31.52 KiB) Viewed 14022 times
vlan5
vlan5
vlan5.PNG (86.77 KiB) Viewed 14022 times

User avatar
TrevorH
Site Admin
Posts: 33221
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Vlans using nmtui

Post by TrevorH » 2015/08/15 23:23:31

For start you are trying to use two ip addresses from the same subnet and that is not going to work well even without a VLAN in the mix.

In pre-NetworkManager days, you used to have an interface and then each VLAN had a separate interface file that had to be named after the VLAN it was on - so yours would be ens160 and ens160.5 (for VLAN 5). I am not sure if the same convention is still in use now but I would stick to it anyway... once you've picked a different subnet to use on your main interface and your VLAN.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

mervgh
Posts: 5
Joined: 2015/08/15 21:50:51

Re: Vlans using nmtui

Post by mervgh » 2015/08/15 23:41:01

Hi Thanks for the reply, I did try creating ens160.5 That did not work as I was not sure how ens160 should be created and then the ens160.5 I tried a number of things but did not work.

thanks,


mervgh
Posts: 5
Joined: 2015/08/15 21:50:51

Re: Vlans using nmtui

Post by mervgh » 2015/08/16 20:45:14

Thanks for your replies. Instead of using nmtui I created the files manually and it is still not working. Any help appreciated.
Parent
Parent
ens160.PNG (15.83 KiB) Viewed 13983 times
Vlan
Vlan
ens160.5.PNG (37.77 KiB) Viewed 13983 times

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Vlans using nmtui

Post by gerald_clark » 2015/08/16 21:17:29

PREFIX=32 ?
Are you sure it should not be PREFIX=24 ?

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: Vlans using nmtui

Post by aks » 2015/08/17 20:17:56

Disclaimer: I've not read all the updates, just the last one....

In IPv4 a prefix of /32 means this host, with this IP address and this host only (i.e.: not any other host on this subnet).

Post Reply