From 33e35cb8b48d3f7382a6c1ee3fba5f665ffe7c70 Mon Sep 17 00:00:00 2001 From: Darren 'Tadgy' Austin Date: Thu, 7 Nov 2019 05:04:02 +0000 Subject: Update rc.inet1.conf in netconfig. Update manpage. --- manpages/rc.inet1.conf.5 | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'manpages') 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. -- cgit v1.2.3