Community discussions

MikroTik App
 
raymonvdm
Member Candidate
Member Candidate
Topic Author
Posts: 161
Joined: Mon Jan 31, 2005 7:47 pm

IPv6 Routing - OSPF / BGP / PPP

Mon Feb 01, 2016 6:15 pm

I have several Mikrotiks running in my network and i would like to understand and build a IPv6 routed network on top of my current infrastructure

I have an IPv6 subnet /48 (ISP) on one location and i would like to use some subnets of this subnet on another location

http://wiki.mikrotik.com/wiki/Manual:My ... v6_Network

The problem is that the connection between R1 and R2 is not ethernet but PPTP

How can i solve this problem?


Image

Note: Red is PPTP connection
Note: Blue / Purple is ethernet connection
 
User avatar
StubArea51
Trainer
Trainer
Posts: 1739
Joined: Fri Aug 10, 2012 6:46 am
Location: stubarea51.net
Contact:

Re: IPv6 Routing - OSPF / BGP / PPP

Mon Feb 01, 2016 7:30 pm

You can assign a global unicast IPv6 addresses to a PPTP interface that is running over IPv4.

IPA-LAB-RB3011-1
[admin@IPA-LAB-RB3011-1] > ipv6 address export                      

/ipv6 address
add address=2001::1/112 advertise=no interface=pptp-out1
IPA-LAB-RB3011-2
[admin@IPA-LAB-RB3011-2] > ipv6 address export 

/ipv6 address
add address=2001::2/112 advertise=no interface=<pptp-ppp1>
Ping across PPTP with IPv6
[admin@IPA-LAB-RB3011-1] > ping 2001::2                             
  SEQ HOST                                     SIZE TTL TIME  STATUS            
    0 2001::2                                    56  64 0ms   echo reply        
    1 2001::2                                    56  64 0ms   echo reply        
    2 2001::2                                    56  64 0ms   echo reply        
    3 2001::2                                    56  64 0ms   echo reply        
    4 2001::2                                    56  64 0ms   echo reply        
    sent=5 received=5 packet-loss=0% min-rtt=0ms avg-rtt=0ms max-rtt=0ms 
If you don't have to run PPTP, I would replace it with EoIP as you can easily put IPv6 global unicast and link-local on it and it will act just like your other ethernet interfaces with respect to IPv6. Ultimately, though, you can route IPv6 over either type of tunnel.
 
raymonvdm
Member Candidate
Member Candidate
Topic Author
Posts: 161
Joined: Mon Jan 31, 2005 7:47 pm

Re: IPv6 Routing - OSPF / BGP / PPP

Mon Feb 01, 2016 10:31 pm

I think you mean i can just configure "public" ipv6 adresses but i already had the following adresses configured

R1 2001:xxx:xxx:83::220/64
R2 2001:xxx:xxx:83::252/64

When i check the ping tool and ping from the ppp interface i still get timeouts

I have started torch and the ping packets are seen on the outgoing pptp interface but there are no packets inbound on the receiving interface

Update: I have changed "UseIPv6 from "No" to "Default" and now it is working :D
 
User avatar
StubArea51
Trainer
Trainer
Posts: 1739
Joined: Fri Aug 10, 2012 6:46 am
Location: stubarea51.net
Contact:

Re: IPv6 Routing - OSPF / BGP / PPP

Mon Feb 01, 2016 10:56 pm

Glad you figured it out :-)
 
raymonvdm
Member Candidate
Member Candidate
Topic Author
Posts: 161
Joined: Mon Jan 31, 2005 7:47 pm

Re: IPv6 Routing - OSPF / BGP / PPP

Tue Feb 02, 2016 12:32 am

Yes but now i need to figure out how to configure OSPFv3 since the example is not working for me (Yet) so i`m searching for a better real life example
Last edited by raymonvdm on Tue Feb 02, 2016 12:48 am, edited 1 time in total.
 
User avatar
ZeroByte
Forum Guru
Forum Guru
Posts: 4047
Joined: Wed May 11, 2011 6:08 pm

Re: IPv6 Routing - OSPF / BGP / PPP

Tue Feb 02, 2016 12:45 am

Yes but now i need to figure out how to configure OSPFv3 since the example is not working for me (Yet)
Go into /routing ospf-v3 interfaces
Add the interface and set the area there.

OSPFv3 doesn't use networks like OSPFv2 does. You must explicitly configure interfaces. Mikrotik also allows you to define the "any" interface if you just want to turn it on on every interface by default.

You'll need to modify your loopback inteface for IPv6 though - create an administrative MAC address for it - IPv6 wants to know the MAC address before it will enable v6 on a bridge. Since the bridge doesn't have any physical interfaces, it doesn't automatically make a MAC for itself.
 
raymonvdm
Member Candidate
Member Candidate
Topic Author
Posts: 161
Joined: Mon Jan 31, 2005 7:47 pm

Re: IPv6 Routing - OSPF / BGP / PPP

Tue Feb 02, 2016 12:50 am

You`re talking about a loopback interface (bridge) but in the example there is no Loopback :shock:
 
User avatar
ZeroByte
Forum Guru
Forum Guru
Posts: 4047
Joined: Wed May 11, 2011 6:08 pm

Re: IPv6 Routing - OSPF / BGP / PPP

Tue Feb 02, 2016 1:03 am

You`re talking about a loopback interface (bridge) but in the example there is no Loopback :shock:
Sorry - I assumed you were using loopback interfaces in your existing IPv4 configuration.

Loopback interfaces aren't required, per-se - but it's best practice in a dynamic routing environment that every router have a loopback interface with a /32 assigned to it (IPv4) and a /128 assigned to it (in IPv6) - and to use the loopback IP as the router-id in all protocols, configurations, etc.

They're especially recommended as tunnel endpoint addresses, since the source IP might go away if it's bound to a physical interface and that interface goes down. A loopback interface will always be reachable so long as the router has at least one up-and-running ospf interface.

If you haven't been doing this, then that's why you don't have a loopback interface. Things will work without it, but it's not best practice.

In IPv6 routing, you don't even need public addresses on the router-to-router interfaces anyway, as OSPFv3 uses the link-local address as the next hop. If you have a routable address on the loopback interface, then the router will use that in all of its "correspondence" with the world - traceroute replies / icmp unreaqchable / ping source / etc.
 
raymonvdm
Member Candidate
Member Candidate
Topic Author
Posts: 161
Joined: Mon Jan 31, 2005 7:47 pm

Re: IPv6 Routing - OSPF / BGP / PPP

Tue Feb 02, 2016 3:12 am

I don` t use IPv4 for OSPF but i`m using BGP to route my internal 192.168.x.x traffic and it is working fine. Since i have my own /48 subnet i would like to use it on several location in my "Home" network

But for now i`m can`t even get two routers who are directly connected by ethernet to see each other in OSPFv3. I`m sure i`m doing something wrong but i didn`t found out the issue yet

crs1

[admin@crs1] /routing ospf-v3> export

/routing ospf-v3 instance
set [ find default=yes ] disabled=no redistribute-connected=as-type-1 \
    router-id=192.168.110.251

/routing ospf-v3 interface
add area=backbone disabled=no interface="eth2 -  crs1 to crs2"
[admin@crs1] /routing ospf-v3>

crs2

[admin@crs2] /routing ospf-v3> export

/routing ospf-v3 instance
set [ find default=yes ] redistribute-connected=as-type-1 router-id=\
    192.168.110.252
/routing ospf-v3 interface
add area=backbone interface="eth2 - crs1 to crs2"

[admin@crs2] /routing ospf-v3>

Update

Just found out that my firewall for IPv6 was dropping protocol 89 :shock:

Who is online

Users browsing this forum: No registered users and 51 guests