Agreed, DHCP is probably the way to go for connecting to public networks.
Depending what method you're using to connect to the internet, there are a couple of ways to achieve this in Arch.
If you're using netcfg, you need to set up a network profile, and either run netcfg (as root) manually, or add it to your daemons array in /etc/rc.conf. Also remove or comment out the network daemon from your array.
For WICD or networkmanager, comment out the network daemon from your array and add wicd or networkmanager as appropriate.
In all cases, unless you are manually connecting to the network using iwconfig and dhcpcd, you should not initialize your network interfaces in /etc/rc.conf. You can do this by adding an exclamation point ( !) in front of the interfaces and gateway. Code: # -----------------------------------------------------------------------
#
# DHCP: Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#
eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(!eth0)
# 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 192.168.0.1"
ROUTES=(!gateway)
DAEMONS=(syslog-ng !network wicd netfs crond)
|