* IPv6 Anycast? @ 2010-07-22 21:32 Stuart Sheldon 2010-07-23 3:57 ` Mikael Abrahamsson 0 siblings, 1 reply; 9+ messages in thread From: Stuart Sheldon @ 2010-07-22 21:32 UTC (permalink / raw) To: netdev; +Cc: Stuart Sheldon -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Is IPv6 Anycast supported? And if so, how do I setup the Anycast addresses? Please reply to me directly, as I am not on this list... Thanks In advance, Stu Sheldon ACT USA - -- Every year is getting shorter, never seem to find the time Plans that either come to naught or half a page of scribbled lines Hanging on in quiet desperation is the english way The time is gone, the song is over, thought Id something more to say -- Pink Floyd - "Time Lyrics" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iQIcBAEBCAAGBQJMSLkLAAoJEFKVLITDJSGSpcwP/0Q9a1PSDE6Iv+ACBo4wfpIV vI1jLBF+Fxk7yxte+NdSqXNc8LOzzYaoEy0F1DGW3AZ2+OBoLyb6mY8hoVtrEFHS 6qXk0DBkqQIZdxLjkuQDpXMKvaHPJplIk2IlaOHAvMP4vmQo1/57mlsDpdgkBetN meAj+OXc/aybw4E12ui6Hf6fDHrXyrdhgtUztoSfk6R/w0MBksgbNDQsLW7LJl1l 1bYWNaiskktn+Y9HwBmrTvL038VA3zy3TuZTn8shNGkpLwzd9qDBUgsS/GqY1v2e XXjCMr3kWm6ezsuHKe/ihviSZxFIoXtS50rynDhrA9ZQM930OgcPPB1yRhzUvI6d b7jXR25oetW1XLQhjR+4+J301JQh9cPPGhwn3MUh26LdpkUMhpqX7OXfuvCDxxA9 ktdDK2To/FBUUvNgTFUa4hhH6DSeofjRYtQmafr4YszFbeyGs1ob7yv/CupekZlv DYva0fcc7LIT4Lc/9/0D3vkgTnLlhT4u13BY9uTZ9UxbwN2YZ+9j7uk4x+2tMCiN t03mot9lP9uQ/g4QYpLF0nsnmHBjzZczS0gYTLy7hkbQRIeu8MiF0jIUtuHvaxZn 6C9Opki6ZCgXLdkHqPhPNuA58T/7vH7a5ct+2eHHWW5UALngUAsZJnGHaMiBB2pX diQHlPmeMTJ8YzqGu/Vz =kxGX -----END PGP SIGNATURE----- ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: IPv6 Anycast? 2010-07-22 21:32 IPv6 Anycast? Stuart Sheldon @ 2010-07-23 3:57 ` Mikael Abrahamsson 2010-07-23 4:30 ` Stuart Sheldon 0 siblings, 1 reply; 9+ messages in thread From: Mikael Abrahamsson @ 2010-07-23 3:57 UTC (permalink / raw) To: Stuart Sheldon; +Cc: netdev On Thu, 22 Jul 2010, Stuart Sheldon wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > Is IPv6 Anycast supported? And if so, how do I setup the Anycast addresses? Are you sure that's what you're looking for? <http://en.wikipedia.org/wiki/Anycast> Because that's more a function of routing protocol/network, than anything really related to "netdev". -- Mikael Abrahamsson email: swmike@swm.pp.se ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: IPv6 Anycast? 2010-07-23 3:57 ` Mikael Abrahamsson @ 2010-07-23 4:30 ` Stuart Sheldon 2010-07-23 5:51 ` Mikael Abrahamsson 0 siblings, 1 reply; 9+ messages in thread From: Stuart Sheldon @ 2010-07-23 4:30 UTC (permalink / raw) To: Mikael Abrahamsson; +Cc: netdev, Stuart Sheldon -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Yea, I'm sure... We use Linux for routers as well as servers and workstations. Since I sent this I've discovered that by default, when a Linux system has IPv6 forwarding turned on, it adds the <network>::/64 anycast router addresses on all the interfaces (as per rfc 2526). What I'm actually looking to do is (change / add) other addresses the to anycast6 list to work in an existing configuration that does not use the rfc 2526 anycast router address. Is there a command line method of setting up these anycast addresses? Thanks, Stu Sheldon ACT USA On 07/22/2010 08:57 PM, Mikael Abrahamsson wrote: > On Thu, 22 Jul 2010, Stuart Sheldon wrote: > >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA256 >> >> Is IPv6 Anycast supported? And if so, how do I setup the Anycast >> addresses? > > Are you sure that's what you're looking for? > > <http://en.wikipedia.org/wiki/Anycast> > > Because that's more a function of routing protocol/network, than > anything really related to "netdev". > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBCAAGBQJMSRrUAAoJEFKVLITDJSGSVnMP+wRF0jrC8RJn+C0EBlNl4uoW qzEjGgrj7fqf9GOa5XWwVkoWHsZNyRZxJgNo73sS/s0PDwsFaZ11PWPqCSE1wafO JkfKjhz3b7KOUjUNyYcvqzR45reRpoDUWVXpVYtqfzvCWvf6xdimatHFcKc3f14W vX3rUG9BaWMuc74u/BZgKxpLXqTdXCwVIEXETSFGy63AdQSN9SIRlmgd6a60FGwJ Cyr60Os8zAUDooQ++xwLB/ito6NdT7xAho2JRjejC0eblXYYT3bQU+kkS0qeHhYY ucMuz18W6WswRM/wTnHzG7DvdRQNWMyvDvzR+qSQiAY6WMmwJ7qWfy1Ikj8l0QPe 5g0qI9Et/jOLzcwIrH2BAif8rBSpOHjqhXxhFNCtXyPsmIulZu4UzV1GbqV60Vp4 fixW4hgPDoqlwvfnojEZSVGxEy67GApokA7+TRY+sHQPvAhxA7b7WrT7liYgcW2B 4gTeaSbrvj6pw3ndYfrjOtbqlH29rU2RXi1MAhOq2fSrtIijMGZdKw6t5YbT5xik qm3PRLYCzFocWP2sykjTds6VuHzhxm7+sqNe8p+0pyUoUYG9lNVyviMNHn0uz9L9 PDi8iIyDVHvEw6AHzmnmYc4RAz4Q/w/VxMY8jwjYurUnEyt9rtjMXsfv5rb2qkcB cuyzbrEkx/49bRL+HZDx =K4wA -----END PGP SIGNATURE----- ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: IPv6 Anycast? 2010-07-23 4:30 ` Stuart Sheldon @ 2010-07-23 5:51 ` Mikael Abrahamsson 2010-07-23 15:12 ` Stuart Sheldon 0 siblings, 1 reply; 9+ messages in thread From: Mikael Abrahamsson @ 2010-07-23 5:51 UTC (permalink / raw) To: Stuart Sheldon; +Cc: netdev On Thu, 22 Jul 2010, Stuart Sheldon wrote: > Yea, I'm sure... > > We use Linux for routers as well as servers and workstations. Since I > sent this I've discovered that by default, when a Linux system has IPv6 > forwarding turned on, it adds the <network>::/64 anycast router > addresses on all the interfaces (as per rfc 2526). > > What I'm actually looking to do is (change / add) other addresses the to > anycast6 list to work in an existing configuration that does not use the > rfc 2526 anycast router address. > > Is there a command line method of setting up these anycast addresses? In routers, this is done by adding the IP address to a loopback interface and announcing the address using a routing protocol, I don't see why this can't be done on a linux box? -- Mikael Abrahamsson email: swmike@swm.pp.se ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: IPv6 Anycast? 2010-07-23 5:51 ` Mikael Abrahamsson @ 2010-07-23 15:12 ` Stuart Sheldon 2010-07-23 16:29 ` Ulrich Weber 0 siblings, 1 reply; 9+ messages in thread From: Stuart Sheldon @ 2010-07-23 15:12 UTC (permalink / raw) To: Mikael Abrahamsson; +Cc: netdev, Stuart Sheldon -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Mikael, Thanks for stepping up and helping me with this... I am aware of the method of using the loopback adapter. This method is suggested when doing things like DNS in a Anycast setup, and also works well with IPv4. Here is a more detailed explanation of what I'm trying to make work... If this is better addressed by another kernel group, please let me know, as I'm unsure where this should be directed. Currently, when you enable IPv6 forwarding on Linux, Linux automatically creates an Anycast address for each interface. Here is an example: cat /proc/net/anycast6 <empty_file> echo 1 > /proc/sys/net/ipv6/conf/all/forwarding cat /proc/net/anycast6 1 lo 00000000000000000000000000000001 1 2 eth0 2607ff38000000000000000000000000 1 2 eth0 fe800000000000000000000000000000 1 3 eth1 fe800000000000000000000000000000 1 3 eth1 2607ff38000000010000000000000000 1 4 eth2 fe800000000000000000000000000000 1 5 eth3 2607ff38000000020000000000000000 1 5 eth3 fe800000000000000000000000000000 1 6 eth4 fe800000000000000000000000000000 1 If you ping one of these auto configured Anycast addresses, let's say eth0's 2607:ff38:: from another host on the eth0 network, you will get a reply from the Linux route box. This allows you to set the default route of that host to the Anycast address 2607:ff38:: and if you have multiple routers on that LAN, it will add the one that responds first to it's neighbor table. This way if one goes down, the host will automatically swing over to another router (once the neighbor cache expires)... Anycast addresses are addresses that are never used as a source address, and are exempt from duplicate address detection (as per RFC 3513). It would appear that the Linux kernel is automatically implementing the reserved Anycast address referenced in RFC 2526. This would be cool, except for a few things. what if you don't want the router to act as an Anycast router on a particular network? How do you remove an Anycast address? And, what if you want to use another address that isn't the reserved address as your Anycast router address? How do you add / change an Anycast address? The RFC regarding Anycast addresses is very clear that it and be ANY unicast address. What I'm looking for is an answer to how I can add/remove/change these Anycast addresses. Again, if I'm asking the wrong list, please point me in the right direction. Thanks again! Stu Sheldon ACT USA Mikael Abrahamsson wrote: > On Thu, 22 Jul 2010, Stuart Sheldon wrote: > >> Yea, I'm sure... >> >> We use Linux for routers as well as servers and workstations. Since I >> sent this I've discovered that by default, when a Linux system has IPv6 >> forwarding turned on, it adds the <network>::/64 anycast router >> addresses on all the interfaces (as per rfc 2526). >> >> What I'm actually looking to do is (change / add) other addresses the to >> anycast6 list to work in an existing configuration that does not use the >> rfc 2526 anycast router address. >> >> Is there a command line method of setting up these anycast addresses? > > In routers, this is done by adding the IP address to a loopback > interface and announcing the address using a routing protocol, I don't > see why this can't be done on a linux box? > - -- And you run and you run to catch up with the sun, but its sinking And racing around to come up behind you again The sun is the same in the relative way, but youre older Shorter of breath and one day closer to death -- Pink Floyd - "Time Lyrics" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iQIcBAEBCAAGBQJMSbFfAAoJEFKVLITDJSGSmcYP/jdhuORDnqIY9+Z9tyKxgeIo pC5I4PsIGM4ZQkHitkCnouB8Q42Ac9JDpip8wf3ViMm+yW5MC9wkEpWQHrFeHv8N jO8AaJVG7BtP8bUUTRDYiEO+5A/U6ls6kf3bVAAvBMTNHVeiEtXY0Lqf1I9gA0gI tB0Ozzsp38uJ0vAeIM7b30lM24+kwqAGWILf3+zNm/sHz+M2KXUJYZs0qen/fKYd kJu35Rdj3fpg47Gz2QQwftVfE5MI7SnQ+BhxnSCriLEkLe5tGWOEFvt15VsLmWM+ akrJI/JJlm+vIyfMgSZU7BPoJQrQ2XCFf4XEyA8kiSHYNUHoReKzgPdft747Vfo9 ZTy8QhJURp/PNNoDYsPa98Y9A0eFUQh/9t4QHz+UcdgO9cC9hjGi/C5bWfAjnAwl 0lCTffYww9MdyoRTQypVs02+iypCLODFZvyf2pblXluciBiv3u+8vKdVEfidy6FM QEfb02d8h2SUS3QKUdGDWwlS9FUU+MXDE6tGSwyxfKsne/rXkk5TvTKPie+wGKVu X0308iA0F2sUZ71t8PGVgVsIbnda00e+8M+a89E1UPHAHe6XW2WvY3/3QOZo6FRD yCcHhl0JaM5NBrMHQJElW2eEKLOZd1ITal2ZhXPNw2JvBM3cb4QnuSxZuhJ6jA9u hy8zTkXmmVBJKNOqXsZZ =fE94 -----END PGP SIGNATURE----- ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: IPv6 Anycast? 2010-07-23 15:12 ` Stuart Sheldon @ 2010-07-23 16:29 ` Ulrich Weber 2010-07-23 16:54 ` Stuart Sheldon 0 siblings, 1 reply; 9+ messages in thread From: Ulrich Weber @ 2010-07-23 16:29 UTC (permalink / raw) To: Stuart Sheldon; +Cc: Mikael Abrahamsson, netdev -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Stuart, you probably mean the IPV6_JOIN_ANYCAST/IPV6_LEAVE_ANYCAST socket option support? See the old patch documentation: http://lkml.indiana.edu/hypermail/linux/net/0208.3/0028.html To remove the automatic generated IPv6 Anycast addresses, you can remove the routes from the local table manually: ip -6 route del 2607:ff38:: table local Best regards Ulrich - -- Ulrich Weber | uweber@astaro.com | Software Engineer Astaro GmbH & Co. KG | www.astaro.com | Phone +49-721-25516-0 | Fax –200 An der RaumFabrik 33a | 76227 Karlsruhe | Germany -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkxJw1IACgkQ22t2oTuElzpt9ACfYR7cZ2tWRb9kVuvTl3d8nbkn oCUAmwVQYjBJ9a35yA/UyJdLeti8cNWK =UDP7 -----END PGP SIGNATURE----- ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: IPv6 Anycast? 2010-07-23 16:29 ` Ulrich Weber @ 2010-07-23 16:54 ` Stuart Sheldon 2010-07-26 8:44 ` Simon Horman 0 siblings, 1 reply; 9+ messages in thread From: Stuart Sheldon @ 2010-07-23 16:54 UTC (permalink / raw) To: Ulrich Weber; +Cc: Mikael Abrahamsson, netdev, Stuart Sheldon -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hi Ulrich, Thanks, that resolves half the issue. So as of right now, there is no userspace program to add anycast addresses? Thanks in advance, Stu Sheldon ACT USA Ulrich Weber wrote: > Hi Stuart, > > you probably mean the IPV6_JOIN_ANYCAST/IPV6_LEAVE_ANYCAST socket option > support? See the old patch documentation: > http://lkml.indiana.edu/hypermail/linux/net/0208.3/0028.html > > To remove the automatic generated IPv6 Anycast addresses, you can remove > the routes from the local table manually: > ip -6 route del 2607:ff38:: table local > > Best regards > Ulrich > - -- Hey nineteen Thats retha franklin, She dont remember The queen of soul, Its hard times befallen The sole survivors, She thinks Im crazy, But Im just growing old -- Steely Dan - "Hey 19 - Lyrics" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iQIcBAEBCAAGBQJMSckqAAoJEFKVLITDJSGSHlEP+QHx5MZugq8US0Q5K8EwWvKM 3eOaELHz7tdNT6R3YJ1h5evcmPkj8iG8HDA65BjOghsUavZczSsZtC85azJ6lTaP lBJdJRiyQa1b9HjnLgu4zGbRWfPyYzLstwvfWUkV7SrrWzAen7HnaMy/0+vRgOb1 MDncta1DzFjJrEwKao1qT/LbN7VVSR7BGAAlhDaJSczEfo0xXRuxpVvHEG+MHT0c EIufckWjJ9TiaYyPALldtFOdEkmS9sqZ2ryMkgrCrL7AiuqqHhTWJgywTrCZk+1O YPy9jZGiMd7vC1u3L34ZRDT30F6bF9LrYcwk+qM0fFPbjdjDrWhIz//G67azADeJ Z/B9KX3UgbRt+tpjDefIR4aGX2sy2YwBNz4mPrM/eq+VGp4ATayFxs4+g5Y7kbFz a5IsnXoqTPpyeJ3dcSVQQxXB00SA2TCc167RgN4xDFu+7ZEoUM9Bbsun8KT2BywE LnNwnRlRmlCq9MZ31Hc+3nwpeW/+kS9xnK7GmwdRhDBLskuiQZbYdsU+t4ouga0m ylhnVQkj7cx0l9SQLUWNwz541MOY5+/tUSZNr3n7Tjyp8J7jf1v0oj2l9BqIDBRY EW8kfHM9QF5z79jBMTgEBPeJtZYpiN/xjToGo+Xs3RZLM0ZffCWQqpE8Sre3ZdiM 6XAaGjSwTRzmYYpblhe6 =ZWuG -----END PGP SIGNATURE----- ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: IPv6 Anycast? 2010-07-23 16:54 ` Stuart Sheldon @ 2010-07-26 8:44 ` Simon Horman 2010-07-26 21:40 ` Stuart Sheldon 0 siblings, 1 reply; 9+ messages in thread From: Simon Horman @ 2010-07-26 8:44 UTC (permalink / raw) To: Stuart Sheldon; +Cc: Ulrich Weber, Mikael Abrahamsson, netdev On Fri, Jul 23, 2010 at 09:54:05AM -0700, Stuart Sheldon wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > Hi Ulrich, > > Thanks, that resolves half the issue. So as of right now, there is no > userspace program to add anycast addresses? I was hoping to have some useful information, but alas I failed on that count. Looking at ip(8) it seems that the following ought to work: ip addr add fd16:a2f5:c4d7::7/48 anycast fd16:a2f5:c4d7::8 dev eth0 However, it seems not to, and then I found this in the manpage :-( anycast - not implemented the destinations are anycast addresses assigned to this host. They are mainly equivalent to local with one difference: such addresses are invalid when used as the source address of any packet. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: IPv6 Anycast? 2010-07-26 8:44 ` Simon Horman @ 2010-07-26 21:40 ` Stuart Sheldon 0 siblings, 0 replies; 9+ messages in thread From: Stuart Sheldon @ 2010-07-26 21:40 UTC (permalink / raw) To: Simon Horman; +Cc: Ulrich Weber, Mikael Abrahamsson, netdev, Stuart Sheldon -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hi Simon, I found the ip man entry too... It appears that the code is in the kernel, as it does automatically add the anycast addresses when you start IPv6 routing... Is this something I should file as a bug / feature request? I would think this should be part of the iproute2 stuff, but LARTC seems to have fallen off the planet. I'm an Administrator not really a programmer, and this seems way beyond my hacking to get done. Not really sure where to go from here... Does anyone out there have any suggestions??? Thanks in advance... Stu Simon Horman wrote: > On Fri, Jul 23, 2010 at 09:54:05AM -0700, Stuart Sheldon wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA256 >> >> Hi Ulrich, >> >> Thanks, that resolves half the issue. So as of right now, there is no >> userspace program to add anycast addresses? > > I was hoping to have some useful information, but alas I failed on that count. > > Looking at ip(8) it seems that the following ought to work: > > ip addr add fd16:a2f5:c4d7::7/48 anycast fd16:a2f5:c4d7::8 dev eth0 > > However, it seems not to, and then I found this in the manpage :-( > > anycast - not implemented the destinations are anycast > addresses assigned to this host. They are mainly equivalent to > local with one difference: such addresses are invalid when used as > the source address of any packet. > - -- Does anyone know where the love of God goes when the waves turn the minutes to hours. The searchers all say that they'd have made White Fish Bay if they'd put fifteen more miles behind her. -- Gordon Lightfoot "The Wreck of The Edmund Fitzgerald Lyrics" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iQIcBAEBCAAGBQJMTgCxAAoJEFKVLITDJSGSuYMQAKEu/uogchQpUhtHgsYUtDfl AJbSo+dLJMKnucb5j8p1+bVM32DFwAP3xC7PuFi3apQywwQljjHJSti4E2oQlM5T GBkCD6+CJS15sg6HG7mJNcBceLhOYlGhRGIA6AXM+O9hGKnQAcW3i/A9gQvhj1oQ gcC94gjJTf0Fk+/jvqpZs20+jTkM6mhtOHG93dCLmKnKDKpTpJjgjWXcBqinYGft +jJZ8WZwAHWKd5hlzkcfK8+b7TlifNq+3ymfeJt/aZHynu7tiGUTLRTWddC3wcSj QMjQkT/w49BeZd4LPOvuXRIoH7cy4Tr5gc6HP5o9b3j5VSlbZMhaRP2l/iLncp3v LB0lsENDPRz2VT4eS/yJCDs7JUqg0yCeCk33qkoN0lFqau6AWbDeDuaX2wwyolY+ 23sezJXolk0iZXGSK7XRfdhnfW1xTmPH/7QR0oPkKt1l+sSUcoIEzkXkTXD1VpRm L6uga2GP7JPjOHKBpgDR97FFjsMRQqin7fPp36pLWY2risb1dXNUYcKp9bzFdGtm u8R2j4g5WS5uGgwE08DSN/bQasBP6QaqD2GPH7GTYsDjiDwvk1UKKEPMYybryWGQ sFn4+gB2n/Z7oNT+6Y+VrcnFV6BFSzrsi2DmUxRWuGMEHjKjm6wfpGoBa0WT9esL Tz1B5/1tbsCtvGQ2ZwXI =jGSQ -----END PGP SIGNATURE----- ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2010-07-26 21:40 UTC | newest] Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2010-07-22 21:32 IPv6 Anycast? Stuart Sheldon 2010-07-23 3:57 ` Mikael Abrahamsson 2010-07-23 4:30 ` Stuart Sheldon 2010-07-23 5:51 ` Mikael Abrahamsson 2010-07-23 15:12 ` Stuart Sheldon 2010-07-23 16:29 ` Ulrich Weber 2010-07-23 16:54 ` Stuart Sheldon 2010-07-26 8:44 ` Simon Horman 2010-07-26 21:40 ` Stuart Sheldon
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.