Arch Linux and netcfg: make only loopback up by default

Here’s how I do it:

$ cat /etc/network.d/loopback
CONNECTION='ethernet'
DESCRIPTION='Loopback to localhost'
INTERFACE='lo'
IP='static'
ADDR='127.0.0.1'
ROUTES=('127.0.0.0/24 via 127.0.0.1')
#GATEWAY='127.0.0.1'
#DNS=('192.168.1.1')

## For IPv6 autoconfiguration
#IP6=stateless

## For IPv6 static address configuration
#IP6='static'
#ADDR6=('1234:5678:9abc:def::1/64' '1234:3456::123/96')
#ROUTES6=('abcd::1234')
#GATEWAY6='1234:0:123::abcd'

This file, of course, must be included from /etc/rc.conf, like this:

NETWORKS=(loopback)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: