From Fedora Project Wiki
(Static settings imply you don't want a boot protocol to be run, hence BOOTPROTO=none is used in Fedora docs.)
 
Line 53: Line 53:


ONBOOT=yes
ONBOOT=yes
BOOTPROTO=static
BOOTPROTO=none
IPADDR=192.168.43.149
IPADDR=192.168.43.149
NETMASK=255.255.255.0
NETMASK=255.255.255.0
</pre>
</pre>

Latest revision as of 13:30, 14 February 2014

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 (permanent)

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=none
IPADDR=192.168.43.149
NETMASK=255.255.255.0