From Fedora Project Wiki

Revision as of 09:32, 13 December 2012 by Pavlix (talk | contribs)

Using iproute2 (runtime)

Example configuration:

parent=eth0
vlan=vlan40
vlanid=40

Create a VLAN:

ip link add link $parent $vlan type vlan id $vlanid

Destroy a VLAN:

ip link delete $vlan

Using NetworkManager

From: https://mail.gnome.org/archives/networkmanager-list/2012-July/msg00141.html

keyfile

[connection]
id=VLAN1
uuid=ed3b2385-9016-45c6-a277-fa7e5be8fe9d
type=vlan

[vlan]
parent=eth0
id=1

[ipv6]
method=auto

[ipv4]
method=auto

ifcfg-rh

VLAN=yes
TYPE=Vlan
DEVICE=eth9.43
PHYSDEV=eth9

ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.43.149
NETMASK=255.255.255.0