From Fedora Project Wiki
(Created page with "From: https://mail.gnome.org/archives/networkmanager-list/2012-July/msg00141.html == keyfile == <pre> [connection] id=VLAN1 uuid=ed3b2385-9016-45c6-a277-fa7e5be8fe9d type=vlan ...")
 
(Static settings imply you don't want a boot protocol to be run, hence BOOTPROTO=none is used in Fedora docs.)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
=== Using iproute2 (runtime) ===
Example configuration:
<pre>
parent=eth0
vlan=vlan40
vlanid=40
</pre>
Create a VLAN:
<pre>
ip link add link $parent $vlan type vlan id $vlanid
</pre>
Destroy a VLAN:
<pre>
ip link delete $vlan
</pre>
=== Using NetworkManager (permanent) ===
From: https://mail.gnome.org/archives/networkmanager-list/2012-July/msg00141.html
From: https://mail.gnome.org/archives/networkmanager-list/2012-July/msg00141.html


== keyfile ==
==== keyfile ====


<pre>
<pre>
Line 20: Line 44:
</pre>
</pre>


== ifcfg-rh ==
==== ifcfg-rh ====


<pre>
<pre>
Line 29: 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