User Tools

Site Tools


arch_networking

This is an old revision of the document!




Use netcfg to setup multiple NICs.

Example files are in /etc/network.d/examples

Copy the example file to /etc/network.d/

The name of the file identifies with network profile it is and is needed later

Set the hostname and network profiles to use at startup in /etc/rc.conf and add “net-profiles” to the daemons line as a replacement for the “network” enrty

/etc/rc.conf

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="chopin"

# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
NETWORKS=(YOUR PROFILES GO HERE AND ARE SEPARATED BY SPACES)

arch_networking.1327503492.txt.gz · Last modified: 2021/05/02 21:36 (external edit)