-
Junior Member
registered user
Knoppix fails to obtain an IP via DHCP from the ADSL Router.
Ok, I have tried this alone and by using this [great] forum but I give-up!
I am using Knoppix as a learning exercise so far and havent played with it much.. apart from this annoying problem, and installing it in the first place
I have a made a dual-boot laptop build (XP and Knoppix 3.3) and when in XP, the machine will get a DHCP address from the ADSL router (its address is 192.168.200.254).
When I boot into knoppix HD install, the card (eth0) comes up but does not obtain an address.
Pump seems to try and do something as it appears in memory after every boot..
If I set the IP details manually, all works well... but as soon as I try DHCP, all fails.. Netcardconfig does not work - always fails..
My /etc/network/interfaces has:
"auto eth0
iface eth0 inet dhcp"
(I added these after installation).
My resolve.conf has
"nameserver 192.168.200.254"
which is what helps me connect to the net when I use manual IP addressing..
ifconfig does not show any ip details, naturally.
Someone, please explain why DHCP is not working for me!!
Thanks in advance guys (and girls?)
-
Senior Member
registered user
Your /etc/network/interfaces should look something like this:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
OR you can set a static I.P. and use gateway which refer to your router i.p. Then your /etc/network/interfaces should look something like this:
auto lo eth0
iface lo inet loopback
auto lo eth0
iface eth0 inet static
address 192.168.x.x
netmask 255.255.255.0
network 192.168.x.0
broadcast 192.168.x.255
gateway 192.168.x.x (what was set on your router)
You /etc/resolve.conf is wrong. The nameserver must be something that provided by your isp.
Usually ISP will give you two DNS IP. You can check using your Windows by running comannd : nslookup or ipconfig.
-
Senior Member
registered user
Sorry i made a mistake, your /etc/network/interface if using static ip should look like this:
auto lo eth0
iface lo inet loopback
iface eth0 inet static
address 192.168.x.x
netmask 255.255.255.0
network 192.168.x.0
broadcast 192.168.x.255
gateway 192.168.x.x (what was set on your router)
-
Junior Member
registered user
Thanks for the reply Shah,
But as I said, I can get connectivity if I assign a manual IP address but thats not what I want! I want to know why simple DHCP is not working..
I use PPPoA (my router gets RJ11 presentation, not ethernet) and so the nameserver I use does work (all clients get DHCP from the router, the router learns DNS settings from the ISP). I could change to the DNS servers my ISP gave me but that wont fix the DHCP problem and is not necessary as the router (not modem) learns the DNS server entries from the (Pipex) network.
I did not enter the loopback settings of my adapter as Im trying to concentrate on the eth0 issue, but please tell me if there's anything else you need?
Could you/someone please tell me what I need to configure to gaurantee DHCP to work as it happily does in Windows??????
Thanks again!
://DK
-
What happens if you try manually running on the command line?
(Must be done as root.)
-
Junior Member
registered user
-
Junior Member
registered user
try
# route add default gw 192.168.xxx.xxx
Can't remember your router's IP
-
Junior Member
registered user
Originally Posted by
sokminer
try
# route add default gw 192.168.xxx.xxx
Can't remember your router's IP
Thanks Sokminer - that works when I have an IP (if I set one statically, or via dhcp), but as I havent gotten one via DHCP, there's no way of interacting with a default gw [192.168.200.254] or having a route!
Yes, I could use static IP entries but I'm really looking to get DHCP working..
I might grab a syslog trace when I get home and post it - if it contains any useful data.. I'm feeling it could be down to the embedded Intel card of my IBM stinkpad T30.. (Doesnt work with my T40 either)..
HOWEVER - it used to work when I booted from my third PC into the Knoppix CD which had a 3Com card.. I'll try that again tonight and see.. (didnt work the last time I tried when I started having trouble with the new HD install though)
-
Senior Member
registered user
Does your ethernet adapter actually work when configured statically? I don't mean as reported by ifconfig, but can you actually ping other machines and use your router's services?
Some chipsets (notably some realtek) need the noapic cheat-code before actually working - even though they're recognised and eth0 is reported. If it doesn't work, then it might not even be able to broadcast to a DHCP server and get its parameters in return...
-
Junior Member
registered user
Originally Posted by
baldyeti
Does your ethernet adapter actually work when configured statically? I don't mean as reported by ifconfig, but can you actually ping other machines and use your router's services?
Some chipsets (notably some realtek) need the noapic cheat-code before actually working - even though they're recognised and eth0 is reported. If it doesn't work, then it might not even be able to broadcast to a DHCP server and get its parameters in return...
Yes, sorry, maybe I should've been clearer:
When I configure IP [192.168.200.3], subnet, default gw [192.168.200.254] and DNS is set as 192.168.200.254 in resolv.conf statically I can browse the internet and LAN.
I have tried the noapic I'm sure.. but will try again
If the noapic boot option does not work (as I think it may not do), do you have any other ideas of what it could be?
(P.s - what script file do I edit for the noapic? I may have only tried it with the bootCD!)
Similar Threads
-
By dundas in forum Networking
Replies: 3
Last Post: 09-06-2010, 11:46 AM
-
By frenco in forum Networking
Replies: 2
Last Post: 05-29-2005, 08:58 AM
-
By k225yt in forum Networking
Replies: 2
Last Post: 03-25-2005, 12:56 PM
-
By ForbiddenSword in forum General Support
Replies: 7
Last Post: 07-31-2004, 05:26 AM
-
By master_b in forum Networking
Replies: 3
Last Post: 05-14-2004, 04:31 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Apple Macintosh LC Desktop Vintage Computer | Macintosh LC with 12" RGB Display
$199.95
Vintage Apple M7803 Pro USB Wired Keyboard Clear Black 2000
$24.99
Vintage Apple Macintosh USB Mouse M4848 Teal Round iMac Hockey Puck
$24.50
Vintage Apple IIGS A2S6000 Computer 1987 TESTED W/ Power Cord & RCA Cables
$289.99
Vintage Apple M2115 External Hard Drive, Dive Not Included
$64.99
Vintage Apple Newton MessagePad 110 Works No Battery Cover R2
$85.00
Vintage Apple Newton eMate 300 H0208 Laptop Computer 1997 Works
$199.95
Vintage Apple Macintosh IIci Computer + Monitor
$450.00
MacEffects Gray ALPS Mechanical Keyboard for Vintage Apple IIe Computers
$195.00
Apple Macintosh PowerBook 180 Vintage Laptop | Retro Computer
$149.95