what do I need to add to network manager to build a vlan

Issues related to configuring your network
Post Reply
fritz1
Posts: 2
Joined: 2020/12/08 03:54:34

what do I need to add to network manager to build a vlan

Post by fritz1 » 2020/12/08 04:01:40

the network manager has no vlan tab to select for building a profile that includes vlan settings. How do I add this feature?

User avatar
jlehtone
Posts: 3262
Joined: 2007/12/11 08:17:33
Location: Finland

Re: what do I need to add to network manager to build a vlan

Post by jlehtone » 2020/12/08 10:26:02

Use nmcli or nmtui

fritz1
Posts: 2
Joined: 2020/12/08 03:54:34

Re: what do I need to add to network manager to build a vlan

Post by fritz1 » 2020/12/09 17:09:44

nmcli-examples just generates an error. man nmcli generates a book and vlan has a single appearance in there with no context associated with it.

User avatar
jlehtone
Posts: 3262
Joined: 2007/12/11 08:17:33
Location: Finland

Re: what do I need to add to network manager to build a vlan

Post by jlehtone » 2020/12/09 18:29:30

What error does man nmcli-examples give? It does not have vlan examples (unless you count the SR-IOV).

A better example is in https://access.redhat.com/documentation ... networking

In other words, something like:

Code: Select all

nmcli con add type vlan con-name answer vlan.parent eno1 vlan.id 42
If you don't use IPv6, then it is better to disable it already during creation:

Code: Select all

nmcli con add type vlan con-name answer dev eno1 id 42 ipv6.method ignore
(The 'dev' and 'id' are aliases, as described in man nmcli.)

If you have (one or more) VLAN on NIC 'eno1.42', then you don't need any connection on the 'eno1'.

Post Reply

Return to “CentOS 8 - Networking Support”