Page 1 of 3 123 LastLast
Results 1 to 10 of 27

Thread: Knoppix fails to obtain an IP via DHCP from the ADSL Router.

  1. #1
    Junior Member registered user
    Join Date
    May 2004
    Location
    London, UK
    Posts
    14

    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?)

  2. #2
    Senior Member registered user
    Join Date
    Jun 2004
    Posts
    788
    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.

  3. #3
    Senior Member registered user
    Join Date
    Jun 2004
    Posts
    788
    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)

  4. #4
    Junior Member registered user
    Join Date
    May 2004
    Location
    London, UK
    Posts
    14
    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

  5. #5
    Senior Member
    Join Date
    Oct 2003
    Location
    Sydney, Australia
    Posts
    157
    What happens if you try manually running
    Code:
    pump -i eth0
    on the command line?
    (Must be done as root.)

  6. #6
    Junior Member registered user
    Join Date
    May 2004
    Location
    London, UK
    Posts
    14
    'tearinghairout' - I like it
    Call me tearinghairout2 )

    I think the pump command is run by netcardconfig?... the result is the same none-the-less, the process fails... but pump stays in memory.

    Something is defintely wrong.. not sure what as I did a HD install straight from the CD and all files were default.

    Are you saying pump -i... should be enough? that's the feeling I have, but no joy

    p.s - why is there not a crying smiley for me to choose? that's what I'm doing now!

  7. #7
    Junior Member registered user
    Join Date
    Feb 2004
    Posts
    18
    try
    # route add default gw 192.168.xxx.xxx

    Can't remember your router's IP

  8. #8
    Junior Member registered user
    Join Date
    May 2004
    Location
    London, UK
    Posts
    14
    Quote 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)

  9. #9
    Senior Member registered user
    Join Date
    Mar 2003
    Posts
    555
    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...

  10. #10
    Junior Member registered user
    Join Date
    May 2004
    Location
    London, UK
    Posts
    14
    Quote 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!)

Page 1 of 3 123 LastLast

Similar Threads

  1. Can't get DHCP from the router for Broadcom 440x
    By dundas in forum Networking
    Replies: 3
    Last Post: 09-06-2010, 11:46 AM
  2. Replies: 2
    Last Post: 05-29-2005, 08:58 AM
  3. Replies: 2
    Last Post: 03-25-2005, 12:56 PM
  4. Setting Up ADSL Router
    By ForbiddenSword in forum General Support
    Replies: 7
    Last Post: 07-31-2004, 05:26 AM
  5. 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
  •  


Dell PowerEdge FX2s CTO Blade 4 Slot 2U Chassis 2x 2000W picture

Dell PowerEdge FX2s CTO Blade 4 Slot 2U Chassis 2x 2000W

$399.00



Dell PowerEdge FX2S FC830 Blade Server Chassis Enclosure 2*2000W PSU NO BLADES picture

Dell PowerEdge FX2S FC830 Blade Server Chassis Enclosure 2*2000W PSU NO BLADES

$299.99



Dell PowerEdge M620  Blade Server 2 x Xeon e5 2665 8 x 16 GB(128) RAM - No HD picture

Dell PowerEdge M620 Blade Server 2 x Xeon e5 2665 8 x 16 GB(128) RAM - No HD

$44.99



Dell PowerEdge M620 Blade Server 2x 10C E5-2690v2 64GB Ram 2x 600GB 10k HDD picture

Dell PowerEdge M620 Blade Server 2x 10C E5-2690v2 64GB Ram 2x 600GB 10k HDD

$125.00



HP ProLiant BL460c Gen8 G8 Blade Server 2x Intel Xeon 10-Core E5-2670v2 NO RAM picture

HP ProLiant BL460c Gen8 G8 Blade Server 2x Intel Xeon 10-Core E5-2670v2 NO RAM

$40.00



DELL PowerEdge M520 Blade Server, 2x Intel Xeon E5-2407V2, 64GB RAM -

DELL PowerEdge M520 Blade Server, 2x Intel Xeon E5-2407V2, 64GB RAM - "B"

$89.99



Dell PowerEdge M620 Blade Server picture

Dell PowerEdge M620 Blade Server

$39.99



HP ProLiant BL460c G8(Gen8) E5-2620 2.0GHz 256GB RAM picture

HP ProLiant BL460c G8(Gen8) E5-2620 2.0GHz 256GB RAM

$50.00



HP ProLiant BL460c Gen9 Blade 2x E5-2690v4 2.6GHz =28 Cores 32GB P246 650FLB picture

HP ProLiant BL460c Gen9 Blade 2x E5-2690v4 2.6GHz =28 Cores 32GB P246 650FLB

$219.00



HP ProLiant BL460c Gen9 Blade 2x E5-2667v4 3.2GHz =16 Cores 32GB P246 650FLB picture

HP ProLiant BL460c Gen9 Blade 2x E5-2667v4 3.2GHz =16 Cores 32GB P246 650FLB

$199.00