summaryrefslogtreecommitdiffstats
path: root/README.VLANs
blob: 22e68661567c04d3cd018f4c25eaa2f5fec09473 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
VLAN support
============

Slackware's rc.inet1 is now VLAN aware, and can be used to bring up interfaces
bound to specific VLAN IDs.  The interfaces support IPv4 and IPv6 IP addressing,
and can be configured on top of a bonded interface.

VLAN interfaces can be configured quite simply in rc.inet1.conf, in the standard
Slackware way of defining an interface.  The key to the configuration is to use
the correct IFNAME[x]="" setting for the underlying ethernet (or bond) interface
and the tagged VLAN ID that should be exposed.

Here are the basic settings for a VLAN with ID 100 on the eth0 interface,
configured with a static IPv4 address:
    IFNAME[0]="eth0.100"
    IPADDR[0]="192.168.100.10"
    NETMASK[0]="24"

As you can see, the IFNAME of the interface contains the underlying ethernet
device name (eth0), a period (.), and the VLAN ID to be exposed.