Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User stokes's Avatar
    Join Date
    Oct 2004

    How to set wlan0 as the default adaptor?

    I'm a bit confused over my eth0 and wlan0 interfaces in my CentOS box.

    I want to use wlan0 as the only network interface in the system. I've tried using the network-config scripts but the interface does not come up when the system boots.

    I use this script to bring up wlan0, which seems to work:

    iwconfig wlan0 essid cupotea
    iwconfig wlan0 mode Managed
    iwconfig wlan0 power off
    iwconfig wlan0 nickname centos
    iwconfig wlan0 channel 11
    ifconfig wlan0 netmask
    route add default gw
    ifconfig wlan0 up
    The lights come on on the back of the card and I can connect on, BUT, when I pull out the ethernet cable on my wired interface, wlan0 dies as well. I've been googling this strange phenomenum for hours and can't seem to find an explanation. If anyone has any clues I would like to know?
    Registered Linux user #389109
    My Semi-Linux Blog

  2. #2
    Linux Guru AlexK's Avatar
    Join Date
    Feb 2005
    I don't know why it should do that, but did you bring down eth0 before pulling the cable? Also, if you don't want the wired card starting on boot, isn't it possible to change its START MODE to off?
    Life is complex, it has a real part and an imaginary part.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts