summaryrefslogtreecommitdiffstats
path: root/manpages/rc.inet1.conf.5
diff options
context:
space:
mode:
Diffstat (limited to 'manpages/rc.inet1.conf.5')
-rw-r--r--manpages/rc.inet1.conf.521
1 files changed, 21 insertions, 0 deletions
diff --git a/manpages/rc.inet1.conf.5 b/manpages/rc.inet1.conf.5
index 0771d94..52695de 100644
--- a/manpages/rc.inet1.conf.5
+++ b/manpages/rc.inet1.conf.5
@@ -105,6 +105,27 @@ USE_DHCP[0]=""
.br
DHCP_HOSTNAME[0]=""
.br
+.SH EXAMPLE VLAN INTERFACE CREATION
+VLAN interfaces can be configured in rc.inet1.conf, in the standard Slackware
+way of defining an interface. The key to the configuration is to use the
+correct IFNAME setting for the underlying ethernet (or bond) interface and the
+tagged VLAN ID that should be exposed.
+.LP
+Here are the basic settings to expose a VLAN with ID 100 on the eth0
+interface, configured with a static IPv4 address:
+.LP
+IFNAME[0]="eth0.100"
+.br
+IPADDR[0]="192.168.100.10"
+.br
+NETMASK[0]="24"
+.LP
+The IFNAME of the interface contains the underlying ethernet device name
+(eth0), a period (.), and the VLAN ID to be exposed.
+.LP
+Note that the underlying ethernet (or bond) interface does not need to have an
+IP address to be used with the VLAN.
+.br
.SH GENERAL PARAMETERS
This is a list of parameters you can set for any interface.
The example section is for `eth0' by default, i.e.