LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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
 
LinkBack Search this Thread
Old 03-14-2013, 12:00 AM   #1
sluge
Member
 
Registered: Dec 2006
Location: Russia,52
Posts: 97

Rep: Reputation: 6
Question How to get IPv6 prefix from network


Hello!

We have local network with ipv6(Prefix and gateway). The router is broadcasting this Prefix.
If we configure /etc/sysconfig/network as IPV6_AUTOCONF=yes, RHEL will configure with it Prefix and gateway.
But we use the IPV6_AUTOCONF=no and we can't find ipv6 Prefix.
It is necessary for us to create automated scripts.

What type of services in RHEL can detect a v6 prefix in the network?

EXAMPLE:

Step1:
# cat /etc/sysconfig/network
Code:
NETWORKING=yes
IPV6_AUTOCONF=yes
NETWORKING_IPV6=yes
HOSTNAME=myhost
GATEWAY=192.168.211.1
GATEWAYDEV=bond0
Code:
# ifconfig bond0
bond0  Link encap:Ethernet  HWaddr 00:0C:29:03:D0:5E
inet addr:192.168.211.138  Bcast:192.168.211.255  Mask:255.255.255.0
inet6 addr: 2000:192:168:211:20c:29ff:fe03:d05e/64 Scope:Global
inet6 addr: fe80::20c:29ff:fe03:d05e/64 Scope:Link
UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
...
Step2:
# cat /etc/sysconfig/network
NETWORKING=yes
IPV6_AUTOCONF=no
NETWORKING_IPV6=yes
HOSTNAME=myhost
GATEWAY=192.168.211.1
GATEWAYDEV=bond0

# ifconfig bond0
bond0 Link encap:Ethernet HWaddr 00:0C:29:030:5E
inet addr:192.168.211.138 Bcast:192.168.211.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe03:d05e/64 Scope:Link
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Get the prefix of an IPv6 address hayf Programming 4 08-24-2011 07:21 AM
How do I get the prefix length of an IPv6 address programatically in AIX? the_pilgrim AIX 1 09-30-2010 01:39 PM
difference b/w AF_ prefix and PF_ prefix related to socket Ashok_mittal Linux - Newbie 1 03-20-2008 04:15 PM
Your network with IPv6 ReefShark Linux - Networking 0 10-13-2003 06:26 AM


All times are GMT -5. The time now is 11:44 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration