You are not logged in.

#1 2010-12-28 07:35:34

Foxhead
Member
Registered: 2010-12-23
Posts: 27

Can't get a internet lease. Dhcpcd and manual

After two different problems with my wireless card i have finally almost gotten it to work. I am capable of connecting to my router, but every time i run dhcpcd eth1 it times out at broadcasting for a lease

rc.conf Network part

eth1="dhcp"
eth0="dhcp"
interfaces=(eth1 eth0)
gateway="default gw 192.168.2.1"
ROUTES=(gateway)

iwconfig

lo no wireless extensions.
eth0 no wireless extensions.
eth1 IEEE 802.11bg ESSID:"sputnik"
Mode:Managed  Frequency:2.457 Acces Point:00:25:3C:**:56:** (stars are to hide what i think is mac address...)
Bit Rate:54Mb/s Tx-Power=20 dBm Sensitivity=8/0
Retry limit:7 RTS thr:off Fragment thr:off
Encryption key:yadda yadda yadda Security mode:open
Power Management:off
Link Quality=86/100 Signal level=-44 dBm Noise level=-85 dBm
Rx invalid nwid:0 Rx invalid crypt:1443 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Miseed beacon:8

I've also tried the

ifconfig wlan0 192.168.0.2
route add default gw 192.168.0.1

example from https://wiki.archlinux.org/index.php/Wi … nual_setup but after when i ping google i get unknown host. So maybe im just missing a step. Also if you need any command outputs just ask and i'll respond once i notice.

Last edited by Foxhead (2010-12-28 07:36:36)

Offline

#2 2010-12-28 08:42:39

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: Can't get a internet lease. Dhcpcd and manual

What do you have in /etc/resolv.conf ?


You're just jealous because the voices only talk to me.

Offline

#3 2010-12-28 13:41:16

Thor@Flanders
Member
Registered: 2010-08-27
Posts: 266

Re: Can't get a internet lease. Dhcpcd and manual

Hi,

Just after a quick read:

gateway="default gw 192.168.2.1"

and

ifconfig wlan0 192.168.0.2

Check - perhaps it can help - the two last entries in the IP addresses. As an example 192.168.1.2 and 192.168.2.1 may not be able to "see" each other...one of the two needs to be changed...the choice is yours wink

Had the same with a print server, it came with IP address 192.168.0.1, my LAN is at 192.168.1.x, noticed the diffrerence?

Possibly a networking thing...

Wellness

Thor

Last edited by Thor@Flanders (2010-12-28 13:42:02)

Offline

#4 2010-12-28 21:52:44

Foxhead
Member
Registered: 2010-12-23
Posts: 27

Re: Can't get a internet lease. Dhcpcd and manual

Well in /etc/resolv.conf i have

#Generated by dhcpcd
#/etc/resolv.conf.head can replace this line
#/etc/resolv.conf.tail can replace this line.

And for the other answer the ifconfig wlan0 192.168.0.2 was just the example, I was using ifconfig eth1 192.168.2.25. and im guessing 192.168.2.1 is my df gateway because thats what i type in a url bar to acces the router.

Offline

#5 2010-12-29 00:52:49

Mektub
Member
From: Lisbon /Portugal
Registered: 2008-01-02
Posts: 647

Re: Can't get a internet lease. Dhcpcd and manual

Foxhead,

your resolv.conf must contain the IP of the Name server. This is mostly the local router, in your case seems to be 192.168.2.1.

You can also use an open DNS server, f.e 8.8.8.8 (Google)

So resolv.conf should contain

nameserver 192.168.1.2

or

nameserver 8.8.8.8

Please read

https://wiki.archlinux.org/index.php/Resolv.conf

Mektub

Last edited by Mektub (2010-12-29 00:53:20)


Follow me on twitter: https://twitter.com/johnbina

Offline

#6 2010-12-29 02:47:04

Foxhead
Member
Registered: 2010-12-23
Posts: 27

Re: Can't get a internet lease. Dhcpcd and manual

Well i tried adding that but it still didn't work, but this time i think i found the problem. I tried pinging my router:

ping -c 3 192.168.2.1

and got Destination Host Unreachable. So I don't know what that means.

Offline

#7 2010-12-29 03:11:06

Mektub
Member
From: Lisbon /Portugal
Registered: 2008-01-02
Posts: 647

Re: Can't get a internet lease. Dhcpcd and manual

Foxhead,

that means that either your router does not have that address or your machine doesn't have an IP address.

What is the output of "ifconfig" ?

192.168.2.1 is perfectly allowed for a router but unusual in factory configurations, they normally use 192.168.0.1 or
192.168.1.1. Or did you configure it ?

Mektub


Follow me on twitter: https://twitter.com/johnbina

Offline

#8 2010-12-29 03:12:16

axion419
Member
Registered: 2007-04-12
Posts: 185

Re: Can't get a internet lease. Dhcpcd and manual

I would attempt to set up a static connection and see if that works.  If it does, you know that you are actually connecting to your router, and that their is actually a DHCP problem.

Offline

#9 2010-12-29 03:47:36

Foxhead
Member
Registered: 2010-12-23
Posts: 27

Re: Can't get a internet lease. Dhcpcd and manual

ifconfig

eth0 Link encap:Ethernet HWaddr:bla bla
inet addr:192.168.2.25 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:9522 dropped:9522 overruns:0 frame:0
TX packets:62 errors:0 dropped:0 overruns:0 frame:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:4848 (4.7 kb)
Interrupt:17 base address:0x6000 Memory:b0118000-b0118ffff

Thats all thats needed. For some reason eth0 and eth1 changed places... kind of weird. and im pretty sure its 192.168.2.1 and i did try to set up a static connection and it didnt work

Last edited by Foxhead (2010-12-29 03:48:14)

Offline

#10 2010-12-30 01:24:59

Foxhead
Member
Registered: 2010-12-23
Posts: 27

Re: Can't get a internet lease. Dhcpcd and manual

K i've realized that it's just not registering with the router, i ran the command ifconfig eth1(it changed again) 192.168.2.45 and then route add df gateway 192.168.2.1 and then on my other computer, i went to 192.168.2.1 in the browser and under connected devices 192.168.2.45 did not show up.

Offline

#11 2010-12-30 01:48:17

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Can't get a internet lease. Dhcpcd and manual

Offline

#12 2010-12-31 02:10:56

Foxhead
Member
Registered: 2010-12-23
Posts: 27

Re: Can't get a internet lease. Dhcpcd and manual

Ughh i feel retarded. Turns out i was using key s:5147380955 turns out i had to just use key 5147380955 D:

Offline

Board footer

Powered by FluxBB