You are not logged in.

#1 2008-08-06 02:26:01

jraab22
Member
Registered: 2008-08-06
Posts: 16

Multiple networks

I'm posting this is the newbie corner, becasue I'm very new to this distro.  I have a networking issue and I couldn't find a direct answer in the wiki or from google.  I have both wired and wireless working perfectly fine on my laptop.  On ubuntu, using networkmanager I could switch from my wireless connection at home, to my wired connection when I got to work on the fly.  I've tried using either networkmanager or wicd on arch to do the same but it doesnt seem to recognize it.  rebooting works fine, and will recognize whatever connection is available. 
Network section of rc.conf

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

# 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
#
eth0="dhcp"
INTERFACES=(eth0)
wlan0="dhcp"
INTERFACES=(eth0 wlan0)
# 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)
 
# 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)

so my question is whats the best way to switch between two types of networks.
If I've missed the documentation somewhere, sorry, please give me a nudge in the right direction

Offline

#2 2008-08-06 03:22:02

mcmillan
Member
Registered: 2006-04-06
Posts: 737

Re: Multiple networks

If you could post your daemons line from rc.conf that also might give some clues if you're missing something.

I've haven't had problems using networkmanager before, can you explain more what's not working?

The other method most people around here seem to use is netcfg If you need a gui interface archassistant can be a good (QT-based) app to look into to use with netcfg.

Offline

#3 2008-08-06 03:26:59

jraab22
Member
Registered: 2008-08-06
Posts: 16

Re: Multiple networks

daemons line

DAEMONS=(syslog-ng acpid laptop-mode  alsa hal !dhcbd  netfs @crond  wicd fam )

The issue is that I need to reboot in order to switch from my wireless network at home to my wired network at work, or vice versa.  For example, I suspsended my laptop at work, unplugged and came home.  In ubuntu , just letting the computer come out of suspend and find my home wireless network. Instead I had to reboot for it to find the network.


Thanks, I'll look closer at netcfg

Last edited by jraab22 (2008-08-06 03:38:28)

Offline

#4 2008-08-06 05:21:06

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Multiple networks

Instead of rebooting you can do /etc/rc.d/network restart.

Or use netcfg.

Offline

Board footer

Powered by FluxBB