[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(usagi-users 02471) Problem about USAGI Linux kernel and ip command
- To: <usagi-users@xxxxxxxxxxxxxx>
- Subject: (usagi-users 02471) Problem about USAGI Linux kernel and ip command
- From: "Liusand" <liusand@xxxxxxxx>
- Date: Tue, 15 Jul 2003 18:20:17 +0800
- Reply-to: usagi-users@xxxxxxxxxxxxxx
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.
Another systems with usagi-linux24-stable-20030214 sets the 2000::/3 route to a tunnel, it works fine. And my other systems with Linux-2.4.18 can handle this too.
I'm wondering there are some compatibility problems between the "ip" command and the USAGI Linux kernel, can anyone clarify this for me?
Thanks in advance!
Sha Liu