Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.