Bug 671105
| Summary: | dhclient can't apply IPV6 address (from Windows Server 2008 DHCP Server) to eth0 | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Konstantin Volkov <wolf> |
| Component: | dhcp | Assignee: | Jiri Popelka <jpopelka> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 14 | CC: | jpopelka |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | dhcp-4.2.0-18.P2.fc14 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-01-25 21:00:25 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Konstantin Volkov
2011-01-20 11:23:34 UTC
Thank you for the report,
can you only add quotation marks so the condition will look like:
if [ -n "${old_ip6_prefix}" ] ||
[ -n "${new_ip6_prefix}" ]; then
and try again ? thanks
Yes, with quotes all OK. Thanx!
---
[root@fc646001 ~]# diff -u /sbin/dhclient-script.orig /sbin/dhclient-script
--- /sbin/dhclient-script.orig 2011-01-20 17:14:59.000000000 +0300
+++ /sbin/dhclient-script 2011-01-20 17:14:43.000000000 +0300
@@ -557,8 +557,8 @@
}
dh6config() {
- if [ -n ${old_ip6_prefix} ] ||
- [ -n ${new_ip6_prefix} ]; then
+ if [ -n "${old_ip6_prefix}" ] ||
+ [ -n "${new_ip6_prefix}" ]; then
echo Prefix ${reason} old=${old_ip6_prefix} new=${new_ip6_prefix}
exit_with_hooks 0
fi
[root@fc646001 ~]# rm -f /var/lib/dhclient/dhclient*
[root@fc646001 ~]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:18:51:AB:B0:09
inet6 addr: fe80::218:51ff:feab:b009/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:141 errors:0 dropped:0 overruns:0 frame:0
TX packets:77 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:16423 (16.0 KiB) TX bytes:8448 (8.2 KiB)
[root@fc646001 ~]# /sbin/dhclient -d -6 eth0
Internet Systems Consortium DHCP Client 4.2.0-P2
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Bound to *:546
Listening on Socket/eth0
Sending on Socket/eth0
PRC: Soliciting for leases (INIT).
XMT: Forming Solicit, 0 ms elapsed.
XMT: X-- IA_NA 51:ab:b0:09
XMT: | X-- Request renew in +3600
XMT: | X-- Request rebind in +5400
XMT: Solicit on eth0, interval 1030ms.
RCV: Advertise message on eth0 from fd00::8.
RCV: X-- Preference 8.
RCV: X-- IA_NA 51:ab:b0:09
RCV: | X-- starts 1295532936
RCV: | X-- t1 - renew +345600
RCV: | X-- t2 - rebind +552960
RCV: | X-- [Options]
RCV: | | X-- IAADDR fd00::da2c:ad8e:f6ba:7a82
RCV: | | | X-- Preferred lifetime 691200.
RCV: | | | X-- Max lifetime 1036800.
RCV: X-- Server ID: 00:01:00:00:4d:30:4b:92:00:1c:42:f9:1c:cc
RCV: Advertisement recorded.
PRC: Selecting best advertised lease.
PRC: Considering best lease.
PRC: X-- Initial candidate 00:01:00:00:4d:30:4b:92:00:1c:42:f9:1c:cc (s: 153, p: 8).
XMT: Forming Request, 0 ms elapsed.
XMT: X-- IA_NA 51:ab:b0:09
XMT: | X-- Requested renew +3600
XMT: | X-- Requested rebind +5400
XMT: | | X-- IAADDR fd00::da2c:ad8e:f6ba:7a82
XMT: | | | X-- Preferred lifetime +7200
XMT: | | | X-- Max lifetime +7500
XMT: V IA_NA appended.
XMT: Request on eth0, interval 1030ms.
RCV: Reply message on eth0 from fd00::8.
RCV: X-- IA_NA 51:ab:b0:09
RCV: | X-- starts 1295532937
RCV: | X-- t1 - renew +345600
RCV: | X-- t2 - rebind +552960
RCV: | X-- [Options]
RCV: | | X-- IAADDR fd00::da2c:ad8e:f6ba:7a82
RCV: | | | X-- Preferred lifetime 691200.
RCV: | | | X-- Max lifetime 1036800.
RCV: X-- Server ID: 00:01:00:00:4d:30:4b:92:00:1c:42:f9:1c:cc
PRC: Bound to lease 00:01:00:00:4d:30:4b:92:00:1c:42:f9:1c:cc.
PRC: Renewal event scheduled in 345598 seconds, to run for 207360 seconds.
PRC: Depreference scheduled in 691198 seconds.
PRC: Expiration scheduled in 1036798 seconds.
[root@fc646001 ~]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:18:51:AB:B0:09
inet6 addr: fd00::da2c:ad8e:f6ba:7a82/64 Scope:Global
inet6 addr: fe80::218:51ff:feab:b009/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:147 errors:0 dropped:0 overruns:0 frame:0
TX packets:83 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:16996 (16.5 KiB) TX bytes:9018 (8.8 KiB)
---
dhcp-4.2.0-18.P2.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/dhcp-4.2.0-18.P2.fc14 dhcp-4.2.0-18.P2.fc14 has been pushed to the Fedora 14 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update dhcp'. You can provide feedback for this update here: https://admin.fedoraproject.org/updates/dhcp-4.2.0-18.P2.fc14 dhcp-4.2.0-18.P2.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report. |