LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-25-2013, 11:22 PM   #1
jzoudavy
Member
 
Registered: Apr 2012
Distribution: Ubuntu, SUSE, Redhat
Posts: 188

Rep: Reputation: Disabled
confused with ipv6 routing


hi all

i need help with sorting out my ipv6 routing question. I find the whole IP thing really confusing and inclusion of IPv6 really doesn't help.

Here is what I got.

I got 3 /64 ipv6 blocks. A/64, B/64, and C/64. I have 3 nodes: a linux blade cluster, (LBC) a Quagga router and the switch.

The network looks something like this: LBC <--> Quagga <--> switch.

I have assigned A::5/128 to LBC as a virtual IP, meaning that as far as the rest of the world is concerned, LBC has A::5 while within the LBC, it can be whatever.

My goal is to have A::5/128 pingable from the switch.

Now for IPv4, to do something of this is actually rather easy. Like this:
a IPv4 vip would be defined, and attached to the blade cluster with a /30 subnet, and one side of the /30 would be on the LBC, while the other side would be on the Quagga router.

Then the quagga router would say, the /30, route through my default gw. which would be in the same subnet as the switch. say a /28.

The I just have to define, on the quagga, this IPv4 VIP should route through my /30, and on the switch my IPv4 VIP should route through my quagga's default gw.

After that, everything is pingable and i get a workable system.

but with IPv6, and the introduction of link local addresses, i am now confused as to what to route where.
in theory, i should take above example, replace ipv4 with ipv6, and it should work. but i am having a lot of problems with that. I know link local are valid only within their context, i have to ping from a specific network interface, unlike ipv4.

can someone help me sort this mess out?

thanks guys
 
Old 07-25-2013, 11:32 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,338

Rep: Reputation: Disabled
Quote:
Originally Posted by jzoudavy View Post
in theory, i should take above example, replace ipv4 with ipv6, and it should work.
Yes, that's exactly what you should do.
Quote:
Originally Posted by jzoudavy View Post
but i am having a lot of problems with that.
Could you be a bit more specific?

Quote:
Originally Posted by jzoudavy View Post
I know link local are valid only within their context, i have to ping from a specific network interface, unlike ipv4.
Link-local addresses are not relevant to routing issues, as they are just that: link-local. You can safely ignore them when you're configuring routing.

As long as you're not accessing the link-local addresses, IPv6 works the same way as IPv4. The main difference when it comes to routing is that every IPv6 router advertises itself on the network with ICMP6 Router Advertisement messages. Other hosts can pick that up automatically or query the network with ICMP6 Router Solicitation messages.
 
Old 07-26-2013, 09:52 AM   #3
jzoudavy
Member
 
Registered: Apr 2012
Distribution: Ubuntu, SUSE, Redhat
Posts: 188

Original Poster
Rep: Reputation: Disabled
actually from the LBC to the Quagga it is done via ospf, so i need the link local. but that isn't the issue right now.

quagga and my switch seems to be having a fit. they are both under /64, but can't ping each other, even though the tcpdump shows the request and reply, and Neighbourhood Discovery on the switch shows the proper ips/mac and everything.
 
Old 07-26-2013, 01:52 PM   #4
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,338

Rep: Reputation: Disabled
I'm not saying you don't need link-local addresses; after all, they are used as source addresses for most (all?) link-local multicast traffic. I'm just saying you don't have to include them in your configuration anywhere, as they are generated and used automatically.

If the switch and the Quagga router both have a statically assigned IPv6 address in the same /64 network and ND works as it should on both hosts, you should definitely be able to ping from one host to the other. I'd check the iptables rules and the /proc/sys/net/ipv6/conf/* settings on the Linux host, and check for ACLs that may exist on the switch.

I remember that an OSPF configuration error once caused a Quagga router to seemingly drop off the network, and I was unable to ping the router from other hosts on the same subnet/segment until the error was corrected. I've never been able to figure out exactly how that could happen, but you may want to stop the ospf6d daemon until you've verified that the IP configuration itself is working.
 
Old 07-26-2013, 03:23 PM   #5
jzoudavy
Member
 
Registered: Apr 2012
Distribution: Ubuntu, SUSE, Redhat
Posts: 188

Original Poster
Rep: Reputation: Disabled
hey, we fixed that problem by unconfiguring and reconfiguring the switch's corresponding vlan.

lol, 4 hours of debugging.

now we finally seem to be on the home stretch.

I got my LBC, Quagga and Switch all pingable between each other. But LBC can not ping straight to Switch.

LBC can ping quagga, quagga can ping switch. lbc can not ping switch or vice versa.
 
Old 07-26-2013, 03:27 PM   #6
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,338

Rep: Reputation: Disabled
Is the Quagga router sending out Router Advertisements?

And is IPv6 routing enabled? The output of cat /proc/sys/net/ipv6/conf/all/forwarding should be 1.

Last edited by Ser Olmy; 07-26-2013 at 03:30 PM.
 
Old 07-26-2013, 05:42 PM   #7
jzoudavy
Member
 
Registered: Apr 2012
Distribution: Ubuntu, SUSE, Redhat
Posts: 188

Original Poster
Rep: Reputation: Disabled
hey

we fixed it. quagga did not have ipv6 forwarding enabled.

man quagga sucks.

f@#$%@#%#$^ quagga.

thanks for your help.
really appreciate it.
now i need to document this.
 
Old 07-26-2013, 05:44 PM   #8
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,338

Rep: Reputation: Disabled
Quote:
Originally Posted by jzoudavy View Post
we fixed it. quagga did not have ipv6 forwarding enabled.

man quagga sucks.

f@#$%@#%#$^ quagga.
I guess it's just faithfully emulating a Cisco router. IPv6 routing is disabled by default in Cisco IOS as well.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Another IPv6 Crash Course For Linux: Real IPv6 Addresses, Routing, Name Services LXer Syndicated Linux News 0 04-21-2011 07:40 AM
confused on disabling IPv6 arnuld Debian 5 06-13-2007 06:11 PM
Help Needed on configure FTP server on LINUX IPv6 :confused: rachel41 Linux - Server 0 04-30-2007 07:37 AM
I'm confused about how to do this routing:> stardotstar Linux - Networking 4 07-11-2006 06:20 PM
ipv6 routing thejayjay Linux - Networking 1 06-09-2004 03:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration