You are not logged in.

#1 2006-03-05 21:03:40

anglian252
Member
Registered: 2005-05-01
Posts: 25

network profiles help required

I've just created two network profiles, one wired...one wireless, however, when I choose either one, and boot into arch and do an ifconfig I get both wlan0 and eth0.

If I do ifconfig eth0 down or eth0 wlan0 down I am able to still browse the internet, which means that both network devices are connecting at start up instead of the one I want to use.

Any ideas?

Offline

#2 2006-03-05 21:13:27

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: network profiles help required

we can't help this way man, at least your rc.conf file

Offline

#3 2006-03-05 21:35:11

anglian252
Member
Registered: 2005-05-01
Posts: 25

Re: network profiles help required

Heres my rc.conf

#
# /etc/rc.conf - Main Configuration for Arch Linux
#

#
# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime"
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/unimaps
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE=
HARDWARECLOCK="UTC"
TIMEZONE=Europe/London
KEYMAP=uk
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

#
# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# Scan hardware and load required modules at bootup
MOD_AUTOLOAD="yes"
# Module Blacklist - modules in this list will never be loaded by hwdetect
MOD_BLACKLIST=()
#
# Modules to load at boot-up (in this order)
#   - prefix a module with a ! to disable it
#
MODULES=(ndiswrapper !usbserial snd-ens1371)
# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

#
# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
HOSTNAME="myhost"
#
# 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
#
# Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp")
#
lo="lo 127.0.0.1"
INTERFACES=(lo)
#
# 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.2.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
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network-profiles
#
NET_PROFILES=(menu)

#
# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng !hotplug !pcmcia hwd netfs crond dbus
hal alsa wifi-radar network gdm)


# End of file

Offline

#4 2006-03-05 21:49:27

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: network profiles help required

NET_PROFILES=(menu)

so do you choose the profile from the menu ?
have you tried adding NET=$profile to your kernel line ?

Offline

#5 2006-03-06 08:25:56

anglian252
Member
Registered: 2005-05-01
Posts: 25

Re: network profiles help required

I have added NET=$profile to my kernel line and the menu that appeared during bootup no longer appears.  However I now get an error message regarding a missing /etc/network-profiles/$profile profile during boot up.

After bootup I do an ifconfig and only my wireless connection is listed and connected.


Here are my network profiles:-

For my ethernet card (Realtek 8139)

#
# Network Profile
#

DESCRIPTION="Wired"

# Network Settings
INTERFACE=eth0
HOSTNAME=myhost

# Interface Settings (use IFOPTS="dhcp" for DHCP)
IFOPTS="dhcp"
GATEWAY=192.168.2.1

# DNS Settings (optional)
DOMAIN=localdomain
DNS1=192.168.2.1
DNS2=

# Wireless Settings (optional)
#ESSID=default
#KEY=
#IWOPTS="mode managed essid $ESSID channel 6 key restricted $KEY"

#WIFI_INTERFACE=wlan0   # use this if you have a special wireless interface
                        # that is linked to the real $INTERFACE

#WIFI_WAIT=5            # seconds to wait for the wireless card to
                        # associate before bringing the interface up

#USEWPA="yes"           # start wpa_supplicant with the profile
#WPAOPTS=""             # use "" for normal operation or specify additional
                        # options (eg, "-D ipw")
                        # see /etc/wpa_supplicant.conf for configuration


For my Wireless Card (Belkin F5D7001uk):-

#
# Network Profile
#

DESCRIPTION="Wireless"

# Network Settings
INTERFACE=wlan0
HOSTNAME=myhost

# Interface Settings (use IFOPTS="dhcp" for DHCP)
IFOPTS="dhcp"
GATEWAY=192.168.2.1

# DNS Settings (optional)
DOMAIN=localdomain
DNS1=192.168.2.1
DNS2=

# Wireless Settings (optional)
#ESSID=default
#KEY=
#IWOPTS="mode managed essid $ESSID channel 6 key restricted $KEY"

#WIFI_INTERFACE=wlan0   # use this if you have a special wireless interface
                        # that is linked to the real $INTERFACE

#WIFI_WAIT=5            # seconds to wait for the wireless card to
                        # associate before bringing the interface up

USEWPA="yes"           # start wpa_supplicant with the profile
WPAOPTS="-D ndiswrapper"             # use "" for normal operation or 
                        # options (eg, "-D ipw")
                        # see /etc/wpa_supplicant.conf for configuration

Offline

#6 2006-03-06 11:09:12

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: network profiles help required

sorry my bad, i thought you'd get my point but it seems that i misexplained it, my apologizes

when i say NET=$profile i meant replacing the $profile with the profile name, fo your case, make in your menu.lst Two identical kernel entries (change only the title, and at the end of the first add NET=Wired (or Wireless, the first one will be the default one) do the same thing to wireless (NOTE: i suppose that your profile names are Wired, Wireless)
now boot and it depends on the profile you selected at boot time, the network will be used...

Hope that helps

Offline

#7 2006-03-06 19:42:27

anglian252
Member
Registered: 2005-05-01
Posts: 25

Re: network profiles help required

I tried adding the profiles to the kernel lines and I still get the same result.  I presume that this is because i'm loading ndiswrapper from the modules section of rc.conf.  Is there anyway I can get this module to load only when I choose the wireless network profile?

Offline

#8 2006-03-08 17:42:31

kleptophobiac
Member
From: Sunnyvale, CA
Registered: 2004-04-25
Posts: 488

Re: network profiles help required

how did you get the menu to work at all?

Offline

Board footer

Powered by FluxBB