Re: ipv6
[email protected] (Andreas Vögele)
| Newsgroups | gmane.linux.slackware |
|---|---|
| Message-ID | <[email protected]> |
Noel Butler <[email protected]> writes: > That might be fine for home uses... But try that approach if you run > public facing servers, that all load up well before rc.local, if the > daemons start at all, they will end up not listening on ipv6, [...] > > I know I get sick of having to remember to modify rc.inet1 [...] rc.wireless is called early during startup. If you create a script with that name you don't have to modify rc.inet1. Example script: #!/bin/sh case "$2" in 'start') case "$1" in eth0) # Add IPv6 address and default route: /sbin/ip addr add XXX dev eth0 /sbin/ip route add default via XXX dev eth0 ;; esac ;; 'stop') case "$1" in eth0) # Remove IPv6 address and default route: /sbin/ip route del default via XXX dev eth0 /sbin/ip addr del XXX dev eth0 ;; esac ;; esac