Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Connecting to the internet using Wicd and Networkmanager works just fine, but through the command-line i get the next error:



# ifconfig eth1 down
# dhclient -r eth1
# ifconfig eth1 up
# iwconfig eth1 essid "[ESSID]"
# iwconfig eth1 key [KEY]
# dhclient eth1 -v
Internet Systems Consortium DHCP Client 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth1/00:15:fa:31:b1:42
Sending on   LPF/eth1/00:15:fa:31:b1:42
Sending on   Socket/fallback
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8
No DHCPOFFERS received.
Trying recorded lease 10.0.0.8
PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data.

--- 10.0.0.1 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

No working leases in persistent database - sleeping.

What are Wicd and Networkmanager doing what i don't ?

I tried ethereality's answer I want to be able to make network-connection with the basic commands, not with some tool (command based or graphic) that make use of these command - I want to have control if certain software fail

Makes no difference either. But!, i just discovered that if i make a connection with wicd-curses, then disconnect and try right after that by command line, then connection is established.


# ifconfig eth1 down
# dhclient -r eth1
# ifconfig eth1 up
# iwconfig eth1 mode Managed
# iwconfig eth1 essid "[ESSID]"
# iwconfig eth1 key [KEY]
# dhclient eth1 -v
Internet Systems Consortium DHCP Client 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth1/00:15:fa:31:b1:42
Sending on   LPF/eth1/00:15:fa:31:b1:42
Sending on   Socket/fallback
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 3
DHCPOFFER of 10.0.0.3 from 10.0.0.1
DHCPREQUEST of 10.0.0.3 on eth1 to 255.255.255.255 port 67
DHCPACK of 10.0.0.3 from 10.0.0.1
bound to 10.0.0.3 -- renewal in 33918 seconds.

But if i make before i leave wicd-curses another connection (to another ap) then command line connection fails.

Perhaps a clue for what is going on?

security is WEP

share|improve this question
    
This question appears to be abandoned, if you are experiencing a similar issue please ask a new question with details pertaining to your problem. If you feel this question is not abandoned, please flag the question explaining that. :) –  jrg Feb 23 '12 at 20:32
add comment

closed as too localized by jrg Feb 23 '12 at 20:33

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

Have you tried wicd-curses? That might work.

What is the security of what you're trying to connect to? Try this:

iwconfig wlan0 mode managed
iwconfig wlan0 channel 11
iwconfig wlan0 essid networkname

replacing wlan0 with whatever your card wants. looks like its eth1.

share|improve this answer
    
Thank you Ethereality, but that is not what i want. I want to be able to make network-connection with the basic commands, not with some tool (command based or graphic) that make use of these commands, if you understand what i mean. –  Suvois Jul 30 '11 at 12:56
    
I want to have control if certain software fail. –  Suvois Jul 30 '11 at 13:03
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.