SlackwareThis Forum is for the discussion of Slackware Linux.
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 was wondering if there are any IPv6 startup scripts readily available for Slackware 14. I am looking for something similar to /etc/rc.d/rc.inet1 -- and hoping that eventually it will become part of the standard Slackware.
I was wondering if there are any IPv6 startup scripts readily available for Slackware 14. I am looking for something similar to /etc/rc.d/rc.inet1 -- and hoping that eventually it will become part of the standard Slackware.
As far as a client PC is concerned there is no need for anything, IPv6 has been designed from the ground up to have automatic configuration.
If you plug a Slackware 14.0 or even 13.37 (possibly several older versions as well) into an network that has been setup for IPv6 the Slackware machine will get an IPv6 address and use it without the user doing a thing.
But what about servers, which have to have a fixed IP number (e.g., nameserver, mail server, web server, etc.)?
I agree with you, it could be nice to have the possibility to set manually ipv6. But auto-configuration set an ip using mac address. If you don't change it, your auto ipv6 will never change.
I agree with you, it could be nice to have the possibility to set manually ipv6. But auto-configuration set an ip using mac address. If you don't change it, your auto ipv6 will never change.
Yup. So, I am looking for Slackware-style init scripts to do the trick.
So far, I found only this, but it is only for connecting to a tunnel broker, and not really for configuring existing interfaces with one (or more!) IPv6 addresses.
drlukacs, there is no such init script in Slackware. I did tried to rise this question almost year ago, but without results. Then I decided it is better to create it myself and share with community later.
I was wondering if there are any IPv6 startup scripts readily available for Slackware 14. I am looking for something similar to /etc/rc.d/rc.inet1 -- and hoping that eventually it will become part of the standard Slackware.
Currently you have the following options:
1. Use NetworkManager (included in Slackware 14) to statically configure IPv6
2. Install Quagga and use the zebra daemon for IPv6 configuration
3. Deploy your own scripts (using /sbin/ip).
For option 3 I would recommend to create a rc.ipv6 script and insert a call to it into rc.inet1, so it works like rc.wireless.
I did tried to rise this question almost year ago, but without results. Then I decided it is better to create it myself and share with community later.
Would you consider sharing the script that you created?
Currently you have the following options: [...]
3. Deploy your own scripts (using /sbin/ip).
For option 3 I would recommend to create a rc.ipv6 script and insert a call to it into rc.inet1, so it works like rc.wireless.
I like option 3. I have a couple of questions about your suggestion to make it work like rc.wireless:
-- Where would it make the most sense to insert such a call?
-- How would such an approach deal with adding tunnels and/or various routing policies?
-- What behaviour would you expect in terms of dhcpcd? (Does the latest version of dhcpcd support IPv6?)
I would definitely welcome any comments and suggestions on how to improve it. I have a couple of concrete questions:
1. Is it better to have a separate rc.ipv6.conf (following the model of rc.wireless), or would it make more sense to include the variables in
rc.inet1.conf?
2. The script rc.ipv6 assumes that it gets IFNAME from rc.inet1 (just as rc.wireless does). Is it a good assumption, or should it create IFNAME independently? In the first case, should that warning be displayed if rc.ipv6 is run from anywhere but rc.inet1?
3. I have not created stop functions, because if a device is taken down in rc.inet1, then there is no need to take it down once more in rc.ipv6. However, if rc.ipv6 is made into a more stand-alone script, then this may make sense -- one might want to just turn off IPv6 on a particular device without wanting the device to be taken down. Same thing with the default gateway.
Another option is to embed static IPv6 configuration into rc.inet1 and rc.inet1.conf. To that end I have created two patches, which are available from: freeshell.de/~lwedding/slackware-14.0/.
rc.inet1.patch is a patch which can be applied to an installed system; although it may fail for rc.inet1.conf due to your local configuration, but it should be easy to manually fix.
network-scripts.patch is a patch for the source for network-scripts package (part of "n" package set).
Hope this is useful to someone.
Note: URL above is not clicky as this is my first post, and URLs are not allowed for first post.
Another option is to embed static IPv6 configuration into rc.inet1 and rc.inet1.conf. To that end I have created two patches, which are available from: freeshell.de/~lwedding/slackware-14.0/.
I like the idea of patching the network scrips, but:
1) It appears that it will work only if you do not use DHCP for IPv4. In real life, one may be using DHCP for IPv4, and static settings for IPv6.
2) The script does not allow adding multiple IPv6 addresses to the same interface.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.