LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices



Reply
 
Search this Thread
Old 07-24-2005, 08:49 AM   #1
Steffen
LQ Newbie
 
Registered: Feb 2003
Location: Berlin
Distribution: LFS
Posts: 4

Rep: Reputation: 0
ifup wlan0 automatically


Hello,

i got my wlan usb adapter to work at last. But the internet connection doesn't get up automaticly. After restart i have to execute "ifup wlan0", then it works. dmesg shows only

Code:
wlan0: no IPv6 routers present
wlan0: no IPv6 routers present
my /etc/network/interfaces:

Code:
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback

# The first network card - this entry was created during the Debian installation
#auto eth0
#iface eth0 inet dhcp

# The wireless network interface   
auto wlan0
    iface wlan0 inet static
        address 192.168.178.2
	netmask 255.255.255.0
	gateway 192.168.178.1
	wireless_key s:XXXXXXXXXXXX open
	wireless_essid fritznetz
	channel 6
Thanks for your help,
Steffen
 
Old 07-24-2005, 09:14 AM   #2
Sharaz
Member
 
Registered: Jun 2005
Location: Dallas, TX
Distribution: Fedora 11,12, RedHat4,6, CentOS4,5, FreeBSD7,8
Posts: 70

Rep: Reputation: 16
i would take a look at /etc/sysconfig/network-scripts folder. there are files there that tell your system whether to start with if's up or down. my file for ifcfg-eth0 looks like this:

Code:
DEVICE=eth0
BOOTPROTO=static
HWADDR=00:02:B3:24:0E:EA
IPADDR=192.168.125.50
NETMASK=255.255.255.0
ONBOOT=yes
TYPE=Ethernet
i believe the ONBOOT is the one you'll want to adjust.
 
Old 07-24-2005, 09:41 AM   #3
Steffen
LQ Newbie
 
Registered: Feb 2003
Location: Berlin
Distribution: LFS
Posts: 4

Original Poster
Rep: Reputation: 0
I'm have debian (2.6.8) and there is no dir /etc/sysconfig.
The interfaces lo and etho are getting up corectly, only wlan0 is ignored.
 
Old 07-25-2005, 05:44 PM   #4
gammi0025
LQ Newbie
 
Registered: Jul 2005
Location: UK Manchester
Posts: 3

Rep: Reputation: 0
Ok Heres goes !
I,m a newbie to linux I,ve been trying to get my wireless networking card to work . I,ve installed the windows driver with ndiswrapper v1.2 he's what dmesg says

Linux version 2.6.11.4-21.7-default (geeko@buildhost) (gcc version 3.3.5 20050117 (prerelease) (SUSE Linux)) #1 Thu Jun 2 14:23:14 UTC 2005

DMA zone: 4096 pages, LIFO batch:1
Normal zone: 225280 pages, LIFO batch:16
HighMem zone: 163836 pages, LIFO batch:16


ndiswrapper: unsupported module, tainting kernel.
ndiswrapper version 1.2 loaded (preempt=no,smp=no)
ndiswrapper: driver bcmwl5 (Broadcom,10/28/2003, 3.40.25.3) loaded
ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 10
PCI: setting IRQ 10 as level-triggered
ACPI: PCI interrupt 0000:00:09.0[A] -> GSI 10 (level, low) -> IRQ 10
ndiswrapper: using irq 10
wlan0: ndiswrapper ethernet device 00:30:bd:fe:6a:c0 using driver bcmwl5, configuration file 14E4:4320.5.conf
wlan0: encryption modes supported: WEP, WPA with TKIP, WPA with AES/CCMP
Capability LSM initialized
ieee1394: Initialized config rom entry `ip1394'
ieee1394: raw1394: /dev/raw1394 device initialized

IPv6 over IPv4 tunneling driver
Adding 3148700k swap on /dev/hdb1. Priority:42 extents:1
Disabled Privacy Extensions on device c033d600(lo)
Linux agpgart interface v0.100 (c) Dave Jones

eth0: no IPv6 routers present
wlan0: no IPv6 routers present
nvidia: unsupported module, tainting kernel.
ACPI: PCI interrupt 0000:01:00.0[A] -> GSI 11 (level, low) -> IRQ 11
NVRM: loading NVIDIA Linux x86 NVIDIA Kernel Module 1.0-7167 Fri Feb 25 09:08:22 PST 2005


eth0: Media Link On 100mbps full-duplex
ndiswrapper: unsupported module, tainting kernel.
load_module: err 0xffffffef (dont worry)
eth0: Media Link Off
NETDEV WATCHDOG: eth0: transmit timed out
eth0: Transmit timeout, status 00000004 00000040
eth0: Media Link On 100mbps full-duplex
eth0: Media Link Off
NETDEV WATCHDOG: eth0: transmit timed out
eth0: Transmit timeout, status 00000004 00000000
eth0: Media Link On 100mbps full-duplex
eth0: Media Link Off
ip_tables: (C) 2000-2002 Netfilter core team
ndiswrapper: device wlan0 removed
eth0: Media Link Off
eth0: no IPv6 routers present
orinoco 0.13e (David Gibson <hermes@gibson.dropbear.id.au>, Pavel Roskin <proski@gnu.org>, et al)
orinoco_pci 0.13e (Pavel Roskin <proski@gnu.org>, David Gibson <hermes@gibson.dropbear.id.au> & Jean Tourrilhes <jt@hpl.hp.com>)
eth0: Media Link Off
eth0: no IPv6 routers present
ndiswrapper: unsupported module, tainting kernel.
ndiswrapper version 1.2 loaded (preempt=no,smp=no)
ndiswrapper: driver bcmwl5 (Broadcom,10/28/2003, 3.40.25.3) loaded
ACPI: PCI interrupt 0000:00:09.0[A] -> GSI 10 (level, low) -> IRQ 10
ndiswrapper: using irq 10
wlan0: ndiswrapper ethernet device 00:30:bd:fe:6a:c0 using driver bcmwl5, configuration file 14E4:4320.5.conf
wlan0: encryption modes supported: WEP, WPA with TKIP, WPA with AES/CCMP
wlan0: no IPv6 routers present
eth0: Media Link On 100mbps full-duplex
Battleburg:/ #

so I think my driver gets loaded but i get this error in iwconfig

Battleburg:/ # iwconfig
lo no wireless extensions.

sit0 no wireless extensions.

eth0 no wireless extensions.

Warning: Driver for device wlan0 recommend version 18 of Wireless Extension,
but has been compiled with version 17, therefore some driver features
may not be available...

wlan0 IEEE 802.11g ESSID:"Untitled" Nickname:"Battleburg"
Mode:Managed Frequency:2.462 GHz Access Point: 00:E0:98:4E:85:1C
Bit Rate=11 Mb/s Tx-Power:25 dBm
RTS thr=2347 B Fragment thr=2346 B
Encryption keyff
Power Managementff
Link Quality:100/100 Signal level:-69 dBm Noise level:-256 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:62 Invalid misc:1281 Missed beacon:0

Battleburg:/ #

what is this wireless extensions ? and how can i upgrade mine to version 18?
this is what ifconfig says

Battleburg:/ # ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:6E:ED:A6:EE
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20c:6eff:feed:a6ee/64 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1695 errors:0 dropped:0 overruns:0 frame:0
TX packets:1626 errors:0 dropped:1 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:618967 (604.4 Kb) TX bytes:182128 (177.8 Kb)
Interrupt:5 Base address:0x9800

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:425 errors:0 dropped:0 overruns:0 frame:0
TX packets:425 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:32290 (31.5 Kb) TX bytes:32290 (31.5 Kb)

wlan0 Link encap:Ethernet HWaddr 00:30:BD:FE:6A:C0
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::230:bdff:fefe:6ac0/64 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4367 errors:0 dropped:0 overruns:0 frame:0
TX packets:3914 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3894151 (3.7 Mb) TX bytes:598538 (584.5 Kb)
Memory:cc800000-cc801fff


so I get an ip address and i can ping my router ?

Battleburg:/ # arping -I wlan0 192.168.1.254
ARPING 192.168.1.254 from 192.168.1.1 wlan0
Unicast reply from 192.168.1.254 [00:E0:98:4E:85:1C] 2.905ms
Unicast reply from 192.168.1.254 [00:E0:98:4E:85:1C] 2.461ms
Unicast reply from 192.168.1.254 [00:E0:98:4E:85:1C] 2.572ms
Unicast reply from 192.168.1.254 [00:E0:98:4E:85:1C] 2.459ms
Unicast reply from 192.168.1.254 [00:E0:98:4E:85:1C] 2.521ms
Unicast reply from 192.168.1.254 [00:E0:98:4E:85:1C] 2.455ms
Unicast reply from 192.168.1.254 [00:E0:98:4E:85:1C] 2.461ms
Unicast reply from 192.168.1.254 [00:E0:98:4E:85:1C] 2.440ms
Unicast reply from 192.168.1.254 [00:E0:98:4E:85:1C] 2.514ms
Unicast reply from 192.168.1.254 [00:E0:98:4E:85:1C] 2.609ms
Sent 10 probes (1 broadcast(s))
Received 10 response(s)
and i can ping google

ping www.google.co.uk
PING www.l.google.com (66.102.9.147) 56(84) bytes of data.
64 bytes from 66.102.9.147: icmp_seq=2 ttl=243 time=34.4 ms
64 bytes from 66.102.9.147: icmp_seq=3 ttl=243 time=34.8 ms
64 bytes from 66.102.9.147: icmp_seq=4 ttl=243 time=33.7 ms
64 bytes from 66.102.9.147: icmp_seq=5 ttl=243 time=35.1 ms
64 bytes from 66.102.9.147: icmp_seq=6 ttl=243 time=30.0 ms
64 bytes from 66.102.9.147: icmp_seq=7 ttl=243 time=28.3 ms
64 bytes from 66.102.9.147: icmp_seq=8 ttl=243 time=30.2 ms
64 bytes from 66.102.9.147: icmp_seq=9 ttl=243 time=29.5 ms

--- www.l.google.com ping statistics ---
9 packets transmitted, 8 received, 11% packet loss, time 8005ms
rtt min/avg/max/mdev = 28.366/32.051/35.174/2.575 ms


but when i reboot it goes off I can't get the net
how do I add the module so it starts when i reboot in suse 9.3
sorry for the long post i,ve tried to add stuff to see if you guys can help me

cheers

Last edited by gammi0025; 07-25-2005 at 05:49 PM.
 
Old 07-26-2005, 05:45 PM   #5
gammi0025
LQ Newbie
 
Registered: Jul 2005
Location: UK Manchester
Posts: 3

Rep: Reputation: 0
ok I can ping my router and can get an ip address when i boot and type ifconfig wlan0 up
but i cant get the internet this must be a router problem surly but it works fine in windose xpsp2
it was working but since i rebooted and taken my pc downstairs
its gone kaput??
can anyone help me :-(
please
 
Old 07-28-2005, 07:28 AM   #6
gammi0025
LQ Newbie
 
Registered: Jul 2005
Location: UK Manchester
Posts: 3

Rep: Reputation: 0
I have figure this out my dns settings were not set
so i set these from the router settings and it know works fine
i am trying to get the wlan0 to work from boot aswell in Suse9.3
I am trying a script in rc.local i,ll let you know how i get on!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ifup?? yenonn Linux - Networking 9 11-16-2005 08:41 PM
dhclient wlan0 - wlan0: not found nickleus Linux - Networking 1 05-10-2005 10:06 PM
where is my ifup/down? syreth Slackware 4 09-13-2004 09:06 AM
Broadcom wireless with ndiswrapper: ifconfig wlan0 works; ifup wlan0 fails orangechicken Linux - Wireless Networking 2 04-17-2004 06:39 PM
Wit's end - ifup wlan0 errors - fedora distro laltopi Linux - Wireless Networking 6 02-03-2004 06:14 PM


All times are GMT -5. The time now is 07:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration