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 +++++++++++++++++++++ netconfig | 20 ++++++++++++++++++++ 2 files changed, 41 insertions(+) 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. diff --git a/netconfig b/netconfig index 4bc430f..2a75ef1 100644 --- a/netconfig +++ b/netconfig @@ -95,6 +95,26 @@ GATEWAY6="" # Change this to "yes" for debugging output to stdout. DEBUG_ETH_UP="no" +# MAXNICS is the maximum number of interfaces that will be configured. +# You may need to increase the MAXNICS value if you have many interfaces, or +# you use multiple VLANs and/or bridges. The default is 6. +# MAXNICS="6" + +# ============================================================================= + +# Example of how to configure a VLAN interface. +# The VLAN ID is taken from the full interface name, which is comprised of the +# underlying interface name, a period (.) and then the VLAN ID. +# IFNAME[0]="eth0.10" +# IPADDR[0]="192.168.10.1" +# NETMASK[0]="24" +# IPALIASES[0]="" +# USE_DHCP[0]="" +# DHCP_HOSTNAME[0]="" +# IP6ADDRS[0]="" +# USE_SLAAC[0]="" +# USE_DHCP6[0]="" + # ============================================================================= # Example of how to configure a bridge: -- cgit v1.2.3