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 12-22-2014, 06:30 AM   #1
bgcadmit
LQ Newbie
 
Registered: Sep 2014
Posts: 12

Rep: Reputation: Disabled
IPv6 blocks


Hello!
I have question I'd like to ask. We have a dedicated server and we got an IPv6 /64 block.

Is it possible to use one particular IP from /64 range? let's say using in squid proxy
For example:
My range is 2001:db8::/64, and I want to use only one address 2001:db8::1/128 or 2001:db8::2/128.
But whenever I do I still get on (http://www.whatismyip.com/)
that I'm using 2001:db8:: (which is whole range, but maybe is there a better way of checking which IP is being used?)

What I want to achieve is to be able to explicitly select and use one particular IP from my /64 range

Is it even possible?
 
Old 12-22-2014, 03:19 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
Each NIC normally occupy one IPv6 address only even if the netmask is /64. The /64 only affect routing and broadcast on the machine.
 
Old 12-22-2014, 03:27 PM   #3
Mousepad123
LQ Newbie
 
Registered: Oct 2012
Distribution: CentOS or Debian
Posts: 25

Rep: Reputation: 3
First, 2001:db8:: is a /32 block in IPv6, and /32 blocks are normally assigned to ISPs. You should be able to get any job done with a /64, if not a /48 (like if you have multiple networks and want each to have a /64 of addresses as a /48 provides 65,536 /64 blocks). For a better way of checking what IP is being used, use http://ip6.me.

In your case, you want to assign just one IP from your allocated range to a network adapter, then force squid to only use that adapter. For example, you could assign the address 2001:db8:dead:beef::1 to eth0, then force squid to listen only on that IPv6 address. That way outgoing requests to the IPv6 internet are sent out with the IP 2001:db8:dead:beef::1.

Also, I'd recommend you go through Hurricane Electric's IPv6 certification training, if you pass with a good score you get a free t-shirt.
 
Old 12-30-2014, 03:27 AM   #4
bgcadmit
LQ Newbie
 
Registered: Sep 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
yeah, I have only one /64 block and what I want is to be able to use all single adresses from this pool evenly, and I'm asking for example squid configuration to be able to do such thing.

PS. by example i mean example, surely I don't want you guys to do my job
 
Old 12-31-2014, 02:37 PM   #5
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
There are 2 NIC on squid proxy server normally, one for LAN and another for WAN. Both side just request one IP address even if netmask is /64. You can use /128 netmask but route configuration should be special.
Do you find out LAN or WAN side use multi IP address?
 
Old 01-05-2015, 03:48 AM   #6
bgcadmit
LQ Newbie
 
Registered: Sep 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
What do you mean by special?

if it's of any help, this is my ifconfig eth0:

Code:
eth0      Link encap:Ethernet  HWaddr hidden
          inet addr:IPv4  Bcast:IPv4  Mask:255.255.255.0
          inet6 addr: 2001:1234:dead:beef::/64 Scope:Global (edited :) )
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
 
Old 01-05-2015, 02:36 PM   #7
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
The 2001:1234:dead:beef::/64 is network IPv6 address, not host IPv6 address. Host IPv6 address should be 2001:1234:dead:beef:x:x:x:x/64. First four digits stand for network address and last four is host address in this network.
You should use host address instead of network address. The network address is used when route is configured.

Last edited by nini09; 01-05-2015 at 02:37 PM.
 
  


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
need to have a review on a script for radvd ipv6 , user can get ipv6 dns ??!! dr.x Linux - Networking 1 09-01-2014 04:45 AM
Cannot connect to ipv6 website with ipv6 address superweijiafeng Linux - Networking 3 07-08-2014 03:55 PM
SLES 10.3 / SuSEfirewall2 blocks all outgoing IPv6 traffic AlucardZero Linux - Networking 1 08-18-2011 05:14 PM
LXer: Another IPv6 Crash Course For Linux: Real IPv6 Addresses, Routing, Name Services LXer Syndicated Linux News 0 04-21-2011 07:40 AM
BIND9 as forwarder, IPv6 queries from IPv6 forwarders Nonoo Linux - Server 1 11-23-2009 01:57 PM

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

All times are GMT -5. The time now is 12:29 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