[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Looking for a little guidance on IPv6



On Sun, Sep 19, 2004 at 11:50:56PM -0400, Jeff Schmidt wrote:

>     Here's my main question: Is there any way to get my local 6to4 
> address, default route, etc, updated automatically by pump when my IPv4 
> dynamic address changes?

Here's what I use as /etc/ppp/ip-up.d/radvd

#!/bin/sh


OurPrefix=`ipv6calc --ipv4_to_6to4addr $PPP_LOCAL | sed 's/::$//'`

/sbin/ip tunnel add tun6to4 mode sit ttl 64 remote any local $PPP_LOCAL
/sbin/ip link set dev tun6to4 up 
/sbin/ip addr add ${OurPrefix}::1/16 dev tun6to4
#/sbin/ip -6 route add ::/0 via ::192.88.99.1 dev tun6to4 metric 1
#/sbin/ip -6 route add ::/0 via ::139.18.38.73 dev tun6to4 metric 1
/sbin/ip -6 route add ::/0 via ::139.18.25.33 dev tun6to4 metric 1
/sbin/ip addr add ${OurPrefix}:1::1/64 dev eth0
/sbin/ip addr add ${OurPrefix}:2::1/64 dev eth1

# Refresh prefix
if [ -x /usr/sbin/radvd ]; then
        /etc/init.d/radvd reload
fi

cat << EOF | mutt -x -s "`hostname`'s IP" my_email@domain.tld
Dear master,

My new IPv4 is $PPP_LOCAL.

Best Regards,

--=20
`hostname --fqdn`
EOF

> Ok, it appears that my WindowsXP desktop is getting Router
> Advertisements from my Linux router, but it doesn't appear to be
> setting the default route correctly based on that info.

I have no experience in this, but try to set AdvRouterAddr to on.

> if I try to ping6 the Link Address on the Linux router interface
> that is connected to my LAN (I *think* I should be able to ping a
> link address from another host on the same LAN,
> no?):

Yes, but only if you tell the system on what link it should to
that. E.g. with the -I option of ping or by appending e.g. %eth0 to
the address.

-- 
Lionel



Reply to: