LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-13-2012, 02:55 AM   #1
ChenZhao
LQ Newbie
 
Registered: Mar 2012
Posts: 5

Rep: Reputation: Disabled
RedHat 6.0 cannot get IP(v6) by DHCP


My dhcp6s.conf is :
# Server configuration file example for DHCPv6
# From the file used for TAHI tests.

# IPv6 address valid lifetime
# (at the end the address is no longer usable by the client)
# (set to 30 days, the usual IPv6 default)
default-lease-time 2592000;

# IPv6 address preferred lifetime
# (at the end the address is deprecated, i.e., the client should use
# other addresses for new connections)
# (set to 7 days, the usual IPv6 default)
preferred-lifetime 604800;

# T1, the delay before Renew
# (default is 1/2 preferred lifetime)
# (set to 1 hour)
option dhcp-renewal-time 3600;

# T2, the delay before Rebind (if Renews failed)
# (default is 3/4 preferred lifetime)
# (set to 2 hours)
option dhcp-rebinding-time 7200;

# Enable RFC 5007 support (same than for DHCPv4)
allow leasequery;

# Global definitions for name server address(es) and domain search list
option dhcp6.name-servers 3ffe:501:ffff:100:200:ff:fe00:3f3e;
option dhcp6.domain-search "test.example.com","example.com";

# Set preference to 255 (maximum) in order to avoid waiting for
# additional servers when there is only one
##option dhcp6.preference 255;

# Server side command to enable rapid-commit (2 packet exchange)
##option dhcp6.rapid-commit;

# The delay before information-request refresh
# (minimum is 10 minutes, maximum one day, default is to not refresh)
# (set to 6 hours)
option dhcp6.info-refresh-time 21600;

# The path of the lease file
dhcpv6-lease-file-name "/var/db/dhcpd6.leases";

# Static definition (must be global)
host myclient {
# The entry is looked up by this
host-identifier option
dhcp6.client-id 00:01:00:01:00:04:93:e0:00:00:00:00:a2:a2;

# A fixed address
fixed-address6 3ffe:501:ffff:100::1234;

# A fixed prefix
fixed-prefix6 3ffe:501:ffff:101::/64;

# Override of the global definitions,
# works only when a resource (address or prefix) is assigned
option dhcp6.name-servers 3ffe:501:ffff:100:200:ff:fe00:4f4e;

# For debug (to see when the entry statements are executed)
# (log "sol" when a matching Solicitation is received)
##if packet(0,1) = 1 { log(debug,"sol"); }
}

host otherclient {
# This host entry is hopefully matched if the client supplies a DUID-LL
# or DUID-LLT containing this MAC address.
hardware ethernet 01:00:80:a2:55:67:34;

fixed-address6 3ffe:501:ffff:100::4321;
}

# The subnet where the server is attached
# (i.e., the server has an address in this subnet)
subnet6 3ffe:501:ffff:100::/64 {
# Two addresses available to clients
# (the third client should get NoAddrsAvail)
range6 3ffe:501:ffff:100::10 3ffe:501:ffff:100::11;

# Use the whole /64 prefix for temporary addresses
# (i.e., direct application of RFC 4941)
range6 3ffe:501:ffff:100:: temporary;

# Some /64 prefixes available for Prefix Delegation (RFC 3633)
prefix6 3ffe:501:ffff:100:: 3ffe:501:ffff:111:: /64;
}

# A second subnet behind a relay agent
subnet6 3ffe:501:ffff:101::/64 {
range6 3ffe:501:ffff:101::10 3ffe:501:ffff:101::11;

# Override of the global definitions,
# works only when a resource (address or prefix) is assigned
option dhcp6.name-servers 3ffe:501:ffff:101:200:ff:fe00:3f3e;

}

# A third subnet behind a relay agent chain
subnet6 3ffe:501:ffff:102::/64 {
range6 3ffe:501:ffff:102::10 3ffe:501:ffff:102::11;
}



When I run as this:
[root@localhost ~]# dhcpd -6 -cf /etc/dhcp6s.conf eth3
Internet Systems Consortium DHCP Server 4.2.1-P1
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 0 leases to leases file.
Bound to *:547
Listening on Socket/5/eth3/3ffe:501:ffff:100::/64
Sending on Socket/5/eth3/3ffe:501:ffff:100::/64


It seems worked.But I cannot get ip.
Why? Where is problem?
 
Old 03-13-2012, 08:43 PM   #2
ChenZhao
LQ Newbie
 
Registered: Mar 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Nobody here??
 
Old 03-13-2012, 10:38 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
i am assuming this is RHEL 6.2 and NOT the very old RH6 - from 1999

have you looked on the red hat documents or the knowledge base yet ?
https://access.redhat.com/knowledge/search
( you WILL need to login the the red hat web site with the username you set when you bought the required license)

the documents - open to everyone
https://access.redhat.com/knowledge/...erprise_Linux/


also are you 100% sure that ipv6 IS being used
not many are using it yet
 
Old 03-13-2012, 11:51 PM   #4
elfenlied
Member
 
Registered: Dec 2004
Posts: 83

Rep: Reputation: 8
Also check that you actually have IPV6 enabled on your nic and on the system.

Check your /etc/sysconfig/network-scripts/ifcfg-ethX file. Do you have the following line?
IPV6INIT=yes

Also in your /etc/sysconfig/network is ipv6 enabled?
NETWORKING_IPV6=yes
 
Old 03-14-2012, 01:55 AM   #5
ChenZhao
LQ Newbie
 
Registered: Mar 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by elfenlied View Post
Also check that you actually have IPV6 enabled on your nic and on the system.

Check your /etc/sysconfig/network-scripts/ifcfg-ethX file. Do you have the following line?
IPV6INIT=yes

Also in your /etc/sysconfig/network is ipv6 enabled?
NETWORKING_IPV6=yes


I have checked these,all have. But it also cannot get ip.
However, I use the same methods, on redhat 5.4,I can get IP from DHCP.
 
Old 03-15-2012, 03:48 AM   #6
ChenZhao
LQ Newbie
 
Registered: Mar 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
..I finally know what is the reason. ip6tables has blocked the data transfer.... After i shutdown the ip6tables ,can get IP from DHCP..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCP at Redhat linux 9 rinux Linux - Networking 3 09-20-2003 01:42 PM
XP Pro Build 2600/sp1 v.1105 DHCP Client to Redhat 8.0 DHCP Server - Problems atomant Linux - Networking 5 06-28-2003 11:24 AM
DHCP in Redhat adriandaz Linux - Networking 1 06-08-2003 12:18 AM
DHCP help in Redhat Draxus Linux - Networking 4 01-02-2003 10:21 PM
Redhat 8.0 and DHCP problem bbenz3 Linux - Networking 3 12-19-2002 11:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration