IPv6 start up scripts
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.
|
Quote:
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. |
Quote:
But what about servers, which have to have a fixed IP number (e.g., nameserver, mail server, web server, etc.)? |
Quote:
|
Quote:
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.
|
Quote:
If you change the hardware it's not too hard to update the DNS records to match. If you change the network then your static IP is just as useless as the stateless autoconfig one. |
Quote:
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. |
Quote:
|
drlukacs, (un)fortunately IPv6 wasn't required for my work, so I did not created any suitable solution. Sorry if I gave You false hope.
|
Quote:
-- 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?) |
Quote:
Quote:
Quote:
|
IPv6 startup scripts -- comments are welcome
I wrote a script following the suggestions from the forum:
http://dl.dropbox.com/u/6403337/IPv6/rc.ipv6 http://dl.dropbox.com/u/6403337/IPv6/rc.inet1 http://dl.dropbox.com/u/6403337/IPv6/rc.ipv6.conf 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. Opinions? |
Hi.
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. |
Quote:
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. 3) The script does not add a default gateway... |
Quote:
|
I have an ISP that provides me with an IPv4 address through DHCP, but since they are not completely set up yet to provide IPv6 using DHCP, I have a static IPv6 /64 subnet assigned to me.
Quote:
|
Quote:
|
Quote:
http://freeshell.de/~lwedding/slackware-14.0/ To configure each interface for IPv6, use the following settings as required in rc.inet1.conf: IPv6ADDR[0]="" USE_DHCPv6[0]="" Note: I do not have a DHCP setup, so I have not tested and therefore cannot confirm that the IPv6 DHCP actually works. If someone else could test this and let me know would be appreciated. I have not addressed points 2 & 3. Leigh. |
Quote:
|
All times are GMT -5. The time now is 08:09 AM. |