Dear Ben I got it to work! Initially I thought that the plugin will work if I have the DHCP server installed locally (ie. on the same machine as the pppd plugin), but somehow it does not (as I mentioned in my earlier email to you, my initial testing which failed has the dhcp server on the same machine as the plugin, but the dhcp server was listening on eth1, which has the shown ethernet address). Now I installed another dhcpd on another linux host (inside the private LAN) and tested again and it worked out nicely.
Sorry for the trouble caused. I should have tested it more thoroughly before asking. However, may I still ask if it is possible for the plugin to work with a locally installed DHCP server (as specified in the README file)? Please correct me if I am wrong, as I assume that "locally" means the plugin and the DHCP server can co-exist on the same machine. Thanks again for your help. Best Regards, Chee Wai --- Ben McKeegan <[EMAIL PROTECTED]> wrote: > Hi Chee Wai, > > It looks like the DHCP plugin never saw the > DHCPOFFER response. > > What DHCP server are you using? > > Where does the MAC address 00:02:2d:56:ae:5d come > from? > > Can you run your test again please while tcpdump'ing > the DHCP traffic > (use the -e option so it records link level headers > and a long snaplen > e.g. -s 2000 so we get the full DHCP info). > > Cheers, > Ben. > > Chee-Wai Yeung wrote: > > Dear all, > > > > I have a problem with using ppp-dhcp plugin for > > dynamic IP allocation with > > rp-l2tpd/IPsec. I am testing the following setup > > > > XP (192.168.2.50) <---> (192.168.2.1)[eth0]Linux > > (192.168.1.200)[eth1]<->192.168.1.128/25 > > > > (192.168.2.50/192.168.2.1 is now a cross cable > > connection. Eventually the XP will come in from > the > > hostile internet using random IPs) > > > > I have a DHCP server running on the Linux machine, > > listening on eth1, serving IP range 192.168.1.129 > to > > 192.168.1.254. > > > > I have ppp-dhcp plugin running, and options file > for > > pppd includes: > > > > plugin dhcpc.so > > dhcp-interface eth1 > > 192.168.1.98: <- for the local end of the PPP > > tunnel > > > > When the XP connects via L2TP/IPsec, pppd fired up > and > > dhcpc.so offered DHCPDISCOVER, and from the logs, > > DHCPD did reply, but the IP offered could not be > > passed on: > > > > Sep 16 16:24:34 notebook1 pppd[17080]: Plugin > dhcpc.so > > loaded. > > Sep 16 16:24:34 notebook1 pppd[17080]: DHCPC: > plugin > > initialized > > Sep 16 16:24:34 notebook1 pppd[17080]: pppd > 2.4.2b3 > > started by root, uid 0 > > Sep 16 16:24:34 notebook1 pppd[17080]: Using > interface > > ppp0 > > Sep 16 16:24:34 notebook1 /etc/hotplug/net.agent: > > assuming ppp0 is already up > > Sep 16 16:24:34 notebook1 pppd[17080]: Connect: > ppp0 > > <--> /dev/pts/3 > > Sep 16 16:24:37 notebook1 pppd[17080]: DHCPC: > Using > > relay address of '192.168.1.200' > > Sep 16 16:24:37 notebook1 pppd[17080]: DHCPC: > > Broadcasting to servers on interface 'eth1' > > Sep 16 16:24:37 notebook1 pppd[17080]: DHCPC: > Sending > > discover... > > Sep 16 16:24:37 notebook1 dhcpd: DHCPDISCOVER from > > 00:02:2d:56:ae:5d via 192.168.1.200 > > Sep 16 16:24:38 notebook1 dhcpd: DHCPOFFER on > > 192.168.1.199 to 00:02:2d:56:ae:5d via > 192.168.1.200 > > Sep 16 16:24:39 notebook1 pppd[17080]: DHCPC: > Sending > > discover... > > Sep 16 16:24:39 notebook1 dhcpd: DHCPDISCOVER from > > 00:02:2d:56:ae:5d via 192.168.1.200 > > Sep 16 16:24:39 notebook1 dhcpd: DHCPOFFER on > > 192.168.1.199 to 00:02:2d:56:ae:5d via > 192.168.1.200 > > Sep 16 16:24:41 notebook1 pppd[17080]: DHCPC: > Sending > > discover... > > Sep 16 16:24:41 notebook1 dhcpd: DHCPDISCOVER from > > 00:02:2d:56:ae:5d via 192.168.1.200 > > Sep 16 16:24:41 notebook1 dhcpd: DHCPOFFER on > > 192.168.1.199 to 00:02:2d:56:ae:5d via > 192.168.1.200 > > Sep 16 16:24:51 notebook1 pppd[17080]: DHCPC: No > > lease, failing. > > Sep 16 16:24:51 notebook1 pppd[17080]: DHCPC: > Failed > > to obtain an IP address. Terminating connection. > > Sep 16 16:24:51 notebook1 pppd[17080]: Exit. > > > > The ethernet address is the inner interface > (eth1). > > > > I am not sure why this is happening - the relay > does > > not seem to be working. > > > > Has anyone successfully used the ppp-dhcp plugin > with > > rp-l2tpd? I'd appreciate > > any help I can get here. > > > > Thanks much in advance, > > Chee Wai > > > > ===== > > ~~~~~~~~~~~~~~ > > Chee-Wai Yeung > > Email: [EMAIL PROTECTED] > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! SiteBuilder - Free, easy-to-use web site > design software > > http://sitebuilder.yahoo.com > > > > > > > -- > Ben McKeegan > Firewall Developer > Netservers.co.uk > 01223 576516 > > > ===== ~~~~~~~~~~~~~~ Chee-Wai Yeung Email: [EMAIL PROTECTED] __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com
