# Testing dhcpcd from git - 2012-03-15 12:13 CET # Stefan Joosten # # Cloned the dhcpcd git repo in ~/srv/dhcpcp # Performed: # $ ./configure # $ make # # What commit am I at: stefan@bacchus ~/src/dhcpcd $ git log -1 commit 8316b244cd9ea57008e1385dbd8d40732d380465 Author: Roy Marples Date: Wed Mar 7 10:06:45 2012 +0000 Add an option to control dhcpcd forking or not if the RA does not contain a RDNSS option. This involves changing our options to an unsigned long long so we can use more than 32 bits. # Let's test stefan@bacchus ~/src/dhcpcd $ sudo ./dhcpcd eth0 Password: dhcpcd[1478]: version 5.5.4 starting dhcpcd[1479]: /libexec/dhcpcd-run-hooks: No such file or directory dhcpcd[1480]: /libexec/dhcpcd-run-hooks: No such file or directory dhcpcd[1478]: eth0: waiting for carrier dhcpcd[1478]: eth0: carrier acquired dhcpcd[1481]: /libexec/dhcpcd-run-hooks: No such file or directory dhcpcd[1478]: eth0: sending IPv6 Router Solicitation dhcpcd[1478]: eth0: sendmsg: Cannot assign requested address dhcpcd[1478]: eth0: rebinding lease of 192.168.3.11 dhcpcd[1478]: eth0: acknowledged 192.168.3.11 from 192.168.3.1 dhcpcd[1478]: eth0: checking for 192.168.3.11 dhcpcd[1478]: eth0: Router Advertisement from fe80::76ea:3aff:febe:2a1c dhcpcd[1482]: /libexec/dhcpcd-run-hooks: No such file or directory dhcpcd[1478]: forked to background, child pid 1483 stefan@bacchus ~/src/dhcpcd $ ifconfig eth0 eth0: flags=4163 mtu 1500 metric 1 inet 192.168.3.11 netmask 255.255.255.0 broadcast 192.168.3.255 inet6 2001:470:1f15:1ee4:4261:86ff:fe03:8f54 prefixlen 64 scopeid 0x0 inet6 fe80::4261:86ff:fe03:8f54 prefixlen 64 scopeid 0x20 ether 40:61:86:03:8f:54 txqueuelen 1000 (Ethernet) RX packets 3 bytes 558 (558.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 11 bytes 1000 (1000.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 device interrupt 46 base 0xa000 stefan@bacchus ~/src/dhcpcd $ su Password: bacchus dhcpcd # echo "nameserver 192.168.3.1" > /etc/resolv.conf bacchus dhcpcd # dig ipv6.google.com ; <<>> DiG 9.9.0 <<>> ipv6.google.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54426 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 1480 ;; QUESTION SECTION: ;ipv6.google.com. IN A ;; ANSWER SECTION: ipv6.google.com. 597108 IN CNAME ipv6.l.google.com. ;; AUTHORITY SECTION: l.google.com. 60 IN SOA ns3.google.com. dns-admin.google.com. 1479884 900 900 1800 60 ;; Query time: 33 msec ;; SERVER: 192.168.3.1#53(192.168.3.1) ;; WHEN: Fri Mar 16 13:08:14 2012 ;; MSG SIZE rcvd: 115 bacchus dhcpcd # ping ipv6.google.com ping: unknown host ipv6.google.com # This is unreachable over IPv4 bacchus dhcpcd # ping6 ipv6.google.com # So let's test it over IPv6 PING ipv6.google.com(ey-in-x67.1e100.net) 56 data bytes 64 bytes from ey-in-x67.1e100.net: icmp_seq=1 ttl=56 time=32.9 ms 64 bytes from ey-in-x67.1e100.net: icmp_seq=2 ttl=56 time=25.5 ms 64 bytes from ey-in-x67.1e100.net: icmp_seq=3 ttl=56 time=26.0 ms 64 bytes from ey-in-x67.1e100.net: icmp_seq=4 ttl=56 time=25.4 ms ^C --- ipv6.google.com ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3004ms rtt min/avg/max/mdev = 25.457/27.515/32.982/3.166 ms # IPv6 works!