[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(usagi-users 02472) Re: Problem about USAGI Linux kernel and ip command
- To: usagi-users@xxxxxxxxxxxxxx
- Subject: (usagi-users 02472) Re: Problem about USAGI Linux kernel and ip command
- From: "Daniel 'NebuchadnezzaR' Dehennin" <nebuchadnezzar@xxxxxxxxx>
- Date: Tue, 15 Jul 2003 13:01:43 +0200
- In-reply-to: <001601c34aba$b066de90$bc4026ca@liusand> (liusand@sina.com's message of "Tue, 15 Jul 2003 18:20:17 +0800")
- Organisation: CaLviX
- References: <001601c34aba$b066de90$bc4026ca@liusand>
- Reply-to: usagi-users@xxxxxxxxxxxxxx
- User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)
"Liusand" <liusand@xxxxxxxx> writes:
> Hi,
> When I was configuring a PC to be a IPv6 router, I found something strange. The PC is equipped with Red Hat Linux 9 and usagi-linux24-stable-20030214 with CONFIG_NETLINK_DEV option enabled. As I know, there are three method to add the default route, i.e. 2000::/3, on a Red Hat Linux 9 system:
> 1. add "eth0 2000::/3 <GateWay IPv6 Addr>" to /etc/sysconfig/static-routes-ipv6;
> 2. add "IPV6_DEFAULTGW=<GateWay IPv6 Addr>" to /etc/sysconfig/network
> 3. add "2000::/3 via <GateWay IPv6 Addr>" to /etc/sysconfig/network-scripts/route6-eth0
> My <GateWay IPv6 Addr> is 2001:250:5400:: with prefix length of 64.
> Each of them works fine on the origin Red Hat 2.4.20-8 kernel, but neither of them works on the USAGI kernel, in spite of much similarity between there configuration. I upgraded it to usagi-linux24-s20030609, but it still refused to work.
> So I decided to run "ip" command manually to add the route. Then command "ip -6 route add 2000::/3 via 2001:250:5400:: dev eth0" told me "RTNETLINK answers: Invalid argument". But when I change the gateway ipv6 address to 2001:250:5400::1, the route was added successfully. So I tried to change the 2001:250:5400:: format to 2001:250:5400:0:0:0:0:0 and 2001:250:5400:0::, it still didn't work. The ip command is from the usagi-linux24-stable-20030214 kit.
Is it valid to use a scope global address for a route ? By definition
the Gateway is link-local, isn't it ?
I try to do like you by when I make a "ip -6 route add MY_PREFIX::/64
dev eth0" it tell me that it expect an inet address
But on my lan, using a debian with 2.4.21 usagi 20030713, I don't care
about the default route, my radvd announce my prefix and my box is
configured automagically ;-)
Someone to confirm ?
--
Daniel 'NebuchadnezzaR' Dehennin