Re: Question about proper IPv6 configuration

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

 



On Thu, 2009-02-05 at 15:55 +0100, Halassy Zoltán wrote:
> Hello!
> 
> (sorry for my garbage english)
> 
> I have a native IPv6 connectivity, but it has some flaws. I wonder there 
> is a better solution, what i did is more like a hack.
> 
> (IPv6 addresses presented here are imaginary)
> 
> Using the command ip (iproute2) for configuring.
> 
> My ISP own the address space 1234::/16
> I own the address space 1234:100::/32
> My ISP gave me the extra address 1234:0:ffff:100::2 (lower than my 
> address space) from their address space, and using 1234:0:ffff:100::1 as 
> gateway. This subnet is only /126 large. My ISP forbids to use this 
> extra IP for global purposes, it's only for routing, they even firewall 
> it out, when i try let's say ping6 ipv6.google.com with that address.
> 
> eth0 has global address 1234:0:ffff:100::2
> Default gateway is 1234:0:ffff:100::1
> eth1 has global address 1234:100::1
> Computers behind eth1 using 1234:100::1 as default gateway, their 
> connectivity is fine.
> 
> And here started my problem, on the gateway i would like to maintain a 
> service, eg. NTP.
> 
> programs picks up the address 1234:0:ffff:100::2 so they won't reach 
> their destination.

In IPv4 you can set "src addr" for each route.  So you could set your
default route to have src addr that is from eth1, even though the route
goes out over eth0.  I wonder if ipv6 can do that also.
> 
> So i added the ip 1234:100::1 to eth0 too (noticed that programs picks 
> up the last added IP address mostly), and then removed the subnet 
> routing rule to prevent the comp to search hosts belonging that subnet 
> over eth0. This (while i think this is a hack) works with most of the 
> programs, like ping6, links, bind, nc ...

Yes, it's an ugly hack ;<

> But programs like ntpd found out 1234:100::1 is on eth1, 
> 1234:0:ffff:100::2 is on eth0, and no way to tell how to use the 
> addresses...

NTP is one of those programs that handles multihomed hosts very poorly.
I hope it gets fixed one day.
-- 
Jeremy Jackson
Coplanar Networks
(519)489-4903
http://www.coplanar.net
jerj@xxxxxxxxxxxx

--
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux