LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 03-28-2012, 11:49 PM   #1
s_hcl
LQ Newbie
 
Registered: Sep 2006
Posts: 18

Rep: Reputation: 0
ipv6 configuration


Kindly let me know is it possible to assign a local link address which is generated automatically to the applications .

If i add a address manually ,can i use that address .

I need to run tomcat6 in redhat 5 ,pl let me know how to configure tomcat or any other applications to run on ipv6 .

Also let me know whether in the ifcfg-eth0 properties ,can both Ipv4 and Ipv6 co-exist .
 
Old 03-29-2012, 02:54 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

What do you mean by 'generated automatically'? You can assign an IPv6 address just like you assign an IPv4 one, dynamically using DHCP server that's configured to hand out IPv6 addresses or manually in the configuration file. You can create a 'site global' range to use for your own. Have a look at this site for utilities to generate a range.

I don't know how to setup Tomcat to use IPv6 but I'm sure somebody will provide a link or information soon. To configure Red Hat, first enable IPv6 networking and then configure the IPv6 addresses in the ifcfg-ethX file(s) as needed. And yes IPv4 and IPv6 can co-exist. Just add:
Code:
IPV6INIT=yes
IPV6ADDR=<your IPv6 address>
Kind regards,

Eric
 
Old 03-29-2012, 04:05 AM   #3
s_hcl
LQ Newbie
 
Registered: Sep 2006
Posts: 18

Original Poster
Rep: Reputation: 0
ipv6 configration

By automatically assigned address , meant about the Local link addresses which is derived from the MAC address of the NIC card.
Regarding DHCPv6 ,i need to study the same ,as how to allocate a range of IPv6 addresses ,like we used to do it for Ipv4 ,say 192.168.1.2 to 192.168.1.55

From where can i get a Site global range of Ip addresses.

I had entered the code which u had mentioned in the ifcfg-eth0 file for manually entering the Ipv6 address . But for some reason it didnt show up ,even after i restarted the network service ,Hence i added it manually

ip -6 addr add <ipv6addr> dev eth0
 
Old 03-29-2012, 04:16 AM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

I'm pretty new to IPv6 too and have had some issues with the link local (fe80) addresses. The can only be used for local link and the packets will not be forwarded by routers to other links. I got confused about that because the link local is a whole new concept. I've found this basic information very useful.

You can use the site I pointed to in my previous post to create a range of IPv6 addresses or click on this link which will have a configuration for IPv6 site local range I've used for a local testing network at work.
IPv6 Site local range

Did you enable IPv6 networking in /etc/sysconfig/network before restarting the network service? I'm guessing not since it's not enable by default and if the IPv6 address didn't show up, that might be an indicator.

Kind regards,

Eric
 
Old 03-29-2012, 04:55 AM   #5
s_hcl
LQ Newbie
 
Registered: Sep 2006
Posts: 18

Original Poster
Rep: Reputation: 0
ipv6 configuration

I had enabled

NETWORKING_IPV6=YES in /etc/sysconfig/networking

also

IPV6INIT=YES IN /etc/sysconfig/network-scripts/init.ipv6-global


Can u guide me on creating ipv6 site local range addresses,as i am confused ,how to do the same
 
Old 03-29-2012, 05:02 AM   #6
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

It's as simple as clicking on the link I provided in my latest post. That will give you this:
Code:
Start Range: fd88:3be1:fee4:8c5e:0:0:0:0
End Range: fd88:3be1:fee4:8c5e:0:0:0:ff

No. of host: 256
Kind regards,

Eric
 
Old 03-29-2012, 05:19 AM   #7
s_hcl
LQ Newbie
 
Registered: Sep 2006
Posts: 18

Original Poster
Rep: Reputation: 0
Excuse if i am being a Novice ,since Ipv6 has been there ,but need to use it for testing between Linux and Widnows


I could generate the hosts as mentioned in the link

But kindly let me know ,how do i pick up the address as mentioned below with the prefix length for generation..

FD88:3BE1:FEE4:8C5E::0/120


Prefix 120 ,means 128-120 = 8 ,that means i can use 8 bits for the host part ,fd88:3be1:fee4:8c5e:0:0:0:ff ,i.e the ff part which is mentioned ( 4+4 bits)

Start Range:
fd88:3be1:fee4:8c5e:0:0:0:0 End Range:
fd88:3be1:fee4:8c5e:0:0:0:ff No. of host: 256

So the addresses would be

fd88:3be1:fee4:8c5e:0:0:0:0
fd88:3be1:fee4:8c5e:0:0:0:1
fd88:3be1:fee4:8c5e:0:0:0:2
.......
fd88:3be1:fee4:8c5e:0:0:0:ff
 
Old 03-29-2012, 05:22 AM   #8
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

That's correct. That would be your IPv6 addresses taking into account the hexadecimal numeration.
And as indicated in the documentation you can substitute any sequence of 0 by :: but only once in an address, so:
Code:
fd88:3be1:fee4:8c5e:0:0:0:1
is the same as:
Code:
fd88:3be1:fee4:8c5e::1

Kind regards,

Eric

Last edited by EricTRA; 03-29-2012 at 05:24 AM. Reason: Alternative to long address
 
Old 03-29-2012, 05:34 AM   #9
s_hcl
LQ Newbie
 
Registered: Sep 2006
Posts: 18

Original Poster
Rep: Reputation: 0
Ya ,regarding the leading zeros i am fine with it .

Kindly let me know ,from where should i take the starting address fd88:3be1:fee4:8c5e,can i refer it from somewhere.

I mean just as we assign pvt ip addresses in Ipv4 like 192.168.1.1 ,so how do we take the above address.
 
Old 03-29-2012, 05:42 AM   #10
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

I suggest you to read the documentation about Site local addresses I pointed you too. That will make clear how to construct an IPv6 range for your network/company which you can use to communicate between devices on a IPv6 level. IPv6 address types and formats.

Kind regards,

Eric
 
Old 03-29-2012, 05:53 AM   #11
s_hcl
LQ Newbie
 
Registered: Sep 2006
Posts: 18

Original Poster
Rep: Reputation: 0
The ipv6 private address space is described as "fc00::/7".
So i needed to know how to we specify the ipv6 address-- fd88:3be1:fee4:8c5e:0:0:0:1 ,is there any tool to generate or specify the same .


Since in ipv4 we knew that the ranges were

10.0.0.0 to 10.255.255.255
172.16.0.0 to 172.31.255.255
192.168.0.0 to 192.168.255.255

So we could pick an address ,say 192.168.1.0 ,192.168.10.0 ......

So ,similarly ,for ipv6 PRivate Ip range is fc00::/7 , hence my query is how do i generate fd88:3be1:8c5e:.....Can i randomly put any numbers for the range of hexa decimals 0-9 ,A-F ,a-f .
 
Old 03-29-2012, 05:59 AM   #12
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

Basically that's how you would do it, the important part is the first part of the address, the first 10 bits. The rest up to the last part can be used to 'separate' networks.
Quote:
After the 10 fixed bits is a 54-bit Subnet ID field that provides 54 bits with which you can create subnets within your organization. You can have a flat subnet structure, or you can divide the high order bits of the Subnet ID field to create a hierarchical and summarize able routing infrastructure. After the Subnet ID field is a 64-bit Interface ID field that identifies a specific interface on a subnet.
Kind regards,

Eric
 
Old 03-29-2012, 11:44 PM   #13
s_hcl
LQ Newbie
 
Registered: Sep 2006
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks, i will go thru the links and understand the same .

Normally i think ,the blocks will be issued by the ISP .
 
Old 03-30-2012, 12:41 AM   #14
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

For AFAIK the ISP only will issue the global address ranges (2000::/3) and not the ones you can use for site local addresses.
Quote:
Global 2000::/3
These are assigned by the IANA and used on public networks. They are equivalent to IPv4 global (sometimes called public) addresses. ISPs summarize these to provide scalability in the Internet.
Kind regards,

Eric
 
  


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
BIND IPv6 DNS Server Configuration austinium Linux - Server 3 07-17-2012 09:54 AM
ipv6 loopback configuration idan72 Linux - Networking 1 02-16-2011 03:06 PM
IPv6 Configuration on SuSE sunilvadranapu SUSE / openSUSE 3 04-07-2009 02:28 AM
IPv6 configuration hermiod Linux - Networking 0 06-19-2008 11:51 AM
IPv6 support and configuration for RH 8.0 davloz Red Hat 0 01-21-2004 03:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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

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