User Tools

Site Tools


arch_networking

This is an old revision of the document!




OLD In arch the network settings are located in /etc/rc.conf

/etc/rc.conf

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

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
# 
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#

#Static IP example
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
#eth0="eth0 172.29.0.2 netmask 255.255.255.0 broadcast 172.29.0.255"
eth0="eth0 up"
tap0="tap0 up"
tap1="tap1 up"
br0="br0 172.29.0.2 netmask 255.255.255.0 broadcast 172.29.0.255"
eth1="eth1 131.193.35.150 netmask 255.255.255.0 broadcast 131.193.35.255"
INTERFACES=(eth0 eth1 br0 tap0 tap1)

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 131.193.35.1"
ROUTES=(gateway)
 
# Setting this to "yes" will skip network shutdown.
# This is required if your root device is on NFS.
NETWORK_PERSIST="no"

# 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=(main)

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