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
Vlans using nmtui
Re: Vlans using nmtui
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.
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
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
Re: Vlans using nmtui
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,
thanks,
Re: Vlans using nmtui
Thanks for your replies. Instead of using nmtui I created the files manually and it is still not working. Any help appreciated.
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
Re: Vlans using nmtui
PREFIX=32 ?
Are you sure it should not be PREFIX=24 ?
Are you sure it should not be PREFIX=24 ?
Re: Vlans using nmtui
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).
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).