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.
I'm running radvd on a SLES 9 SP 3 system, so that it can function as an IPv6 router. I need to assign a global unicast address to this system. Other systems in my lab acquire their IPv6 address from this router. But the router doesn't seem to provide itself with an address when it boots, which isn't very surprising.
So what is the best method of assigning a static IPv6 address to an IPv6 router? I didn't see anyplace in YaST to do this, nor did I find an existing script that seemed to do the trick.
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900
Rep:
So, what is your mode of using IPv6? Does your ISP support IPv6? Do you want this global address globally accessible? Do you have a globally accessible IPv4 address?
If you do not need global accessibility, you may just assign address at random using 'ip' or 'ifconfig', but it doesn't seem to be what you want. You can place this in init scripts to be done automatically.
If you want to get IPv6 address from provider, you either need to have something like DHCP6 or just ask it and set this address as in the first case.
If you have an external IPv4, search the web for 6to4, 'sit0' is also a good search term (I do not have external IPv4, so I haven't used any of such solutions).
As a last resort, use tunnel broker. Personally I use go6.net (=freenet6.hexago.com, =freenet6.net), it is a free IPv6 tunnel broker which doesn't require to enter excessive personal data (e-mail and Name/Surname, that are not claimed to be verified; and all the data you send to Internet unencrypted will pass their servers - just as with ISP's). It will give you decent speed and a small globally accessible IPv6 subnet. It will go through most NAT's, though I need sometimes to help the keep-alive process by pinging freenet6.hexago.com (double NAT, though..).
Thanks for the reply. I want to manually set an IPv6 address that I've been assigned on a system in our engineering lab. I know that I can use 'ip' or 'ifconfig'. But, in what init script is the best placed? I want to put it in 'the obvious place', but I don't know what that is on SLES 9.
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900
Rep:
Well, I would say 'wrong forum'.. General ideas (applicable to any SysV init):
1) look for 'network*' in init.d . There is probably something like that. It is usually an acceptable place.
2) Try rc.local maybe.
3) Try creating your own script in init.d
4) Check if your existing networking script accepts IPv6 addresses in, say, /etc/*/*if*up* or something like that (/etc/sysconfig/network maybe..).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.