From Fedora Project Wiki
m (Pavlix moved page Tools/NetworkManager/VLAN to Networking/VLAN) |
No edit summary |
||
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 === | |||
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> |
Revision as of 09:32, 13 December 2012
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