mdsh.com/wiki


RecentChanges

TextFormattingRules
AllWikiTopics
OrphanedWikiTopics
ToDoWikiTopics
WikiLockList
RSS
Export2HTML

WikiSearch

SetUsername

StartingPoints
Home
VLAN

Install - Ubuntu:


sudo apt-get install vlan

Configure by Hand - Ubuntu or Redhat/Fedora:


sudo modprobe 8021q
sudo vconfig set_name_type VLAN_PLUS_VID
sudo vconfig add eth0 15
sudo ip addr add 10.0.15.20/24 dev vlan0015


Configure perminant - Ubuntu:


sudo su -c 'echo "8021q" >> /etc/modules'

Add the following lines to /etc/network/interfaces

auto vlan0015
iface vlan0015 inet static
address 10.0.15.20
netmask 255.255.255.0
vlan-raw-device eth0


See: http://manpages.ubuntu.com/manpages/lucid/man5/vlan-interfaces.5.html
See: https://wiki.ubuntu.com/vlan


Configure perminant - Fedora:


sudo su -c 'echo "alias vlan 8021q" >> /etc/modprobe.conf'

Create and add the following lines to /etc/sysconfig/network-scripts/ifcfg-vlan15

VLAN=yes
VLAN_NAME_TYPE=VLAN_PLUS_VID
DEVICE=vlan0015
PHYSDEV=eth0
BOOTPROTO=static
ONBOOT=yes
TYPE=Ethernet
IPADDR=10.0.15.20
NETMASK=255.255.255.0



VLAN is mentioned on: Linux


VeryQuickWiki Version 2.8.1 | Admin

All contents copyright mdsh.com (C) 2011-2023.