Monthly Archives: September 2011

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)

Follow

Get every new post delivered to your Inbox.