DHCPv4 server and relay at the same time
Dave Taht
dave.taht at gmail.com
Wed Mar 21 19:11:49 UTC 2012
We're getting there I suppose. I found the right tunnel module.
opkg install kmod-ip6-tunnel
Probably hopefully just called setup6 wrong
sh -x ./setup6 ge00 2001:db8:0:1::3 2001:db8:0:1::1 2001:db8:0:1::1
26: tun0: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1460 qdisc noqueue state UNKNOWN
link/tunnel6 2001:db8:0:1::3 peer 2001:db8:0:1::1
inet 192.0.0.2 peer 192.0.0.1/32 scope global tun0
inet6 fe80::a021:b7ff:feac:e455/64 scope link
valid_lft forever preferred_lft forever
ip route
default via 192.0.0.1 dev tun0
172.28.1.0/27 dev se00 proto kernel scope link src 172.28.1.1
172.28.1.64/27 dev sw00 proto kernel scope link src 172.28.1.65
172.28.1.96/27 dev sw10 proto kernel scope link src 172.28.1.97
172.28.1.128/27 dev gw00 proto kernel scope link src 172.28.1.129
172.28.1.160/27 dev gw10 proto kernel scope link src 172.28.1.161
192.0.0.1 dev tun0 proto kernel scope link src 192.0.0.2
root at sd-cpe2:/etc# ping 192.0.0.1
PING 192.0.0.1 (192.0.0.1): 56 data bytes
nada.
^C
On Wed, Mar 21, 2012 at 11:44 AM, Francis Dupont <fdupont at isc.org> wrote:
>> 3) re: dhccra's latest problem
>>
>> d at io:~$ ssh 2001:db8:0:1::3 -l root
>> root at 2001:db8:0:1::3's password:
>>
>> root at sd-cpe2:~# netstat -na | grep 67
>> root at sd-cpe2:~# currently nothing listening, no dnsmasq, no udhcp, nothing
>>
>> /usr/sbin/dhccra -d -i ge00 -l4 149.20.74.65 2001:db8:0:1::1
>
> => note it should be launched without the -l4 as the address is
> not yet available.
>
>> Listening on LPF/ge00/a0:21:b7:ac:e4:56
>> Sending on LPF/ge00/a0:21:b7:ac:e4:56
>> Can't bind to dhcp address: Cannot assign requested address
>
> => dhccra is right: you can't assign an address which is not
> one of the addresses of the box.
>
>> Please make sure there is no other dhcp server
>> running and that there's no entry for dhcp or
>> bootp in /etc/inetd.conf. Also make sure you
>>
>> without the -l4 option it listens to everything
>
> => in IPv6 and lsof could show it uses the same IPv6 socket (:-).
>
>> Bound to *:67
>> Listening on Socket/ge00
>> Sending on Socket/ge00
>> Listening on Socket/sw00
>> Sending on Socket/sw00
>> Listening on Socket/gw00
>> Sending on Socket/gw00
>> Listening on Socket/gw01
>> Sending on Socket/gw01
>> Listening on Socket/sw10
>> Sending on Socket/sw10
>> Listening on Socket/se00
>> Sending on Socket/se00
>> Listening on Socket/gw10
>> Sending on Socket/gw10
>> Listening on Socket/gw11
>> Sending on Socket/gw11
>> Listening on Socket/ipv6
>> Sending on Socket/ipv6
>
> => the last one (ipv6 fake interface) is for the port 68,
> all others are for the same *:67
> So it works...
>
> Regards
>
> Francis Dupont <fdupont at isc.org>
>
> PS: in the install on WNDR doc you'll have to explain the interface names
> (what is the wan (ge00) and what is the lan).
--
Dave Täht
SKYPE: davetaht
US Tel: 1-239-829-5608
http://www.bufferbloat.net
More information about the sdcpe-devel
mailing list