How to implement dhcp client and pppoe client on the same interfaceat same time?

Discussion in 'Linux Networking' started by xpaulee, May 13, 2009.

  1. xpaulee

    xpaulee Guest

    I have a network card named eth0,a pppoe connection has been build
    over it named ppp0(pppd eth0).At the same time,I also want a dhcp
    connection on eth0,but it failed when i use udhcpc -i eth0 to get IP
    address.From wireshark,I noted that The dhcp REQUEST message had been
    send via ppp0 not eth0.
     
    xpaulee, May 13, 2009
    #1
    1. Advertisements

  2. xpaulee

    Greg Russell Guest

    From where is the DHCP service originating? A local router? The eth0 host
    machine, or ....?
     
    Greg Russell, May 13, 2009
    #2
    1. Advertisements

  3. xpaulee

    xpaulee Guest

    DHCP service originating from the eth0 host machine,

    1.eth0 send DISCOVER via eth0
    2.eth0 get OFFER via eth0
    3.eth0 send REQUEST via ppp0(it is the problem!)
    .....
     
    xpaulee, May 13, 2009
    #3
  4. Hi,

    You could try to add the 'dhcp broadcast address' to the eth0 interface :

    255.255.255.255

    The dhcp request are send to this address which is map to the ethernet
    broadcast address.

    You may also modify the local route table, using the 'ip route' tools, to
    change the 255.255.255.255 destination.

    Regards
     
    Antoine EMERIT, Jun 1, 2009
    #4
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.