MikroTik IPv6 Crash Course: IPv6 Addressing - OSPFv3 - BGP IPv6

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
what's up everybody the networkberg here hope you've been doing well in this video we will be tackling ipv6 in a in a live lab using even g to go through the setup of ipv6 kind of like what it is and we will be also just adding it on stuff like bgp and ospf so it's going to be an interesting and fun video because it's something that even i myself don't actively work with this ipv6 so i figured it'd be cool if we just created a lab and helped each other out and see what the heck is going on so anyways without further ado let's get into the video all right so let's start building a topology in even g so that we can play around with ipv6 so i'm just going to add four micro tech routers i'll leave their name on mikrotik i'm not going to use version 7 even though it's really cool the stuff that they've been doing on version 7. this is all beta and there's a lot of features that's not working on it at all so we'll use version 6471 one inch image that i have already and we'll add 12 ethernet ports because i kind of just like having 12 ports on the routers because it makes them feel like they are maybe a ccr that you're working on all right so let's move our routers around and i might just add a management bridge so that i can just access all these micro ticks directly on winbox without having to set up ramon and that stuff oh and this will give the router some breakout but that's only through my ipv4 because this is something i want to stress with people because i see a lot of people thinking you can build an ipv6 network on microtech and then you can net your traffic out as ipv4 and on microtick that does not work that doesn't happen because mikrotik doesn't currently support nat 64 which is a let's say a mechanism that allows you to net ipv6 addresses to ipv4 and vice versa you can add ipv4 addresses to ipv6 mikrotik doesn't have that so if you want to do that you're probably going to have to deploy additional infrastructure maybe a different router that can do net 64 so that you can net the traffic in and out through that router but if you're just going to start expanding an internal network with ipv6 and you want to get to the internet using your ipv4 addresses as currently on your infrastructure it's not going to work unless you get something that can do nat 64. okay so we've got our former critics i'm just going to start them up and i do really actually like ibv6 it is interesting because it kind of breaks your head a little bit as well because it's not this plain normal thing um that you work with on a day-to-day basis all right let's see i've got my for me critique routers i can see all four of them so that's rather one router two router three router four all right so let's just one box onto router one quickly and see what's happening there so first things first if you want to run ipv6 you need to enable it on your router so if i go into my ip here you'll see there's nothing there's nothing going on here there's nothing about ipv6 if i go into my addresses i can't assign ipv6 addresses here it doesn't work it doesn't allow me to do that so i can't do this but if i enable ipv6 on the router i can actually start adding ipv6 addresses so to do that we simply need to go into our system packages and then your ipv6 it will be there it's just going to be in a disabled state so we can just enable that and then it's scheduled for enable so all i need to do is quickly reboot the router so system reboot yes and i'll quickly do the same for all the other me critique routers so i'll just quickly do this on the command line because it's fairly quick to do so system package print system package enable three and that's going to be the same on all of my other routers i just printed here to make sure um i would strongly suggest if you do it via the cli and you're using a physical router just maybe check as well because you might have additional packages installed and it might not be number three for you okay i'm being silly now because i i haven't rebooted those routers so i need to log back into them anyways system reboot yes okay so let's just get back on the other routers reboot them as well system reboot yes it's going to reboot and then the last one system reboot yes and there we go all four hour routers will now reboot and they will have the ipv6 package installed so let me go back onto router one there it is i'm connecting back onto it let me just close all the windows and then very simple you'll see now there's an ipv6 option here so that is what i want to get you to focus your eyes on because a lot of people miss this and then they're like where the heck do i add ipv6 addresses now so you'll just go into this ipv6 address space and then you can go into your addresses and just like your ipv4 if i go here it's an address list but it's just for your ipv6 addresses so by default when you start this up each of your interfaces will get their own unique um link local address so it's this address that starts with the fe-80 and this will allow this entire network to basically be able to broadcast over this address space so each interface will have its own ipv6 address whenever you bring it up simple as that if we want to add a new ipv6 address all that we need to do is click on this plus and then we can specify our own ipv6 address so i'm going to leave this as a slash 64 because it's the easiest for beginners like myself even to understand what the heck is happening with ipv6 because with ipv4 we only have 32 bits in ipv6 how many do we have not 64. we have 128 but if we just use slash 64 you can almost think it's like double the amount of eyepiece and stuff but don't get confused another thing with ipv6 is you get hextets which is basically like eight spaces where you can fill in hexadecimal values and then with ipv4 you've only got the four octets where you can put in ip informations which runs from zero to nine so let's quickly add a ipv6 address so i'm going to assign myself a global address so let's make it something like 2001 colon so if you're not aware with ipv6 the first hexted gets assigned to you by iana which is the think of it as the big number association which says yes you can use these numbers or not the second spot that is going to be allocated to the registry which is maybe going to be ripe or afrinic or aaron or those type of places which allocates and network spaces to isps and such so they will get their own little code that they would put in here so let me just maybe make that 2000 and then finally there's a space that the registry will give to the isp so maybe that is like 3 000 and then the isps will give you as a company your own little block so it might be like 1 000 or 2 000 or whatever they feel like but remember these are all hex values you can it it's from zero to nine and i think a to f you can assign different type of values in there so you see that's the the difference we could shorten this as well but but not this address because any zeros that is on the left hand side in a hexted you can basically shorten but not if there's a number or something before it so maybe if this was um 0 0 20 we could have written it like that or something and then at the end i'm just going to assign the address.1 because that will be the ip address of this interface i'm going to add it on so let me add that ip actually on um we can add it on ether one as well that won't be an issue because ether one is also connecting to that bridge of mine on the lab and here we can set some different values as well so we can do e ui 64 or no dad which is basically like the http but it's not dhcp where addresses check if if they share the same address or not and this advertises very interesting because this actually lets your neighbors know what your address is and if you're using ipv6 as well so let's apply this address to ether one and then you see it has this g here for the global address and that is now on ether one and that is being advertised so next step we need to put this on another router so we can actually see if the ipv6 is working so let's connect on one box again and go into my critique 2 which is this one and we'll connect to it close all the windows and go into ipv6 go into addresses let's add a new address and our other address i believe was 2001 zero let's make that 20 then i'll make it 3000 1000 i'll confirm the numbers just now 64 and let's make that 2 okay let me just go back onto router 1 so we can see what ip we made there i could have actually just copied this but i think i i am right okay and dot 2. so i'm going to put that on ether one as well and i'm going to apply so the address is red because it's just checking if there is another address that has that ip if there is no ip then it will just accept that that's the correct ip and that's ipv6 address and it is live now so how can we test well we can actually do a few things we can have a look at our ipv6 and we can look at neighbors and this should bring up a neighbor if there is any neighbors that's connected on the network but i don't see any and the other thing we could do is just probably run a ping so let's do a ping 2001 [Music] 23 000 1000 1 and i am getting a reply from that so i am able to ping that ipv6 address it looks a bit weird because it says echo reply and usually if you work with um let's say ipv4 if i just do like a ping to 8.8.8 you just get this it just gives you the milliseconds and stuff it doesn't tell you the status it could reply so it looks a bit weird but that's normal that is normal okay cool so we've actually assigned some ip addresses and there we can see the neighbors as well okay so let's quickly just assign some more ip addresses on the network so that all four of these routers have addresses on ipv6 i might just quickly do this on the command line as well just to show you how we can do that i've seen this happen so for whatever reason my emulator doesn't like when i put on the ipv6 and i just restart the router i first need to restart the whole lab before it works so i can just do this on one box as well but i'll just do it through the winbox command line because that isn't affected so let's connect and we'll go into ipv6 actually no just our terminal see there's a good old terminal it works it would have just been like a participation all right so ipv6 address add and then we can put in an address because you see in instead of using ip address i'm using ipv6 address to add a new address i can make this three and then my interface will be ether one that's it i've added ipv4 address now on router three so that's the router four and then we are done connect so ipv4 ipv6 address add address equals think of that as dot four and my interface is ether one cool cool cool cool so let's look at our neighbors again ipv6 neighbors let's try to do some things but also think it's because my links aren't directly connected and i'm just pinging to see if the address resolves i might just up arrow this and take this address and just type ping and let's ping the three oh i need to just remove that there we go so dot three is responding no two is responding.1 is responding all right grand so we have ipv6 connectivity between all four of our routers let's go into the next cool thing okay so again fairly important ipv6 on microtic is its own thing so whatever you see here in ip this is only for ipv4 so even your firewall your dhcp server all this stuff here this is only for your ipv4 the only things you can do on ipv6 you need to go to your rpv6 tile for so we can add the addresses we can have our own ipv6 dhcp server we can have our own ipv6 firewall very important because this firewall rules manual rules these connections this only relates to ipv6 this will have nothing to do with your ipv4 connections so a manual rule that you put here will not impact anything that's running ipv4 your filter rules same thing so think of this as two separate networks an ipv four stack and ipv6 stack and these stacks they're not directly able to communicate with each other it would have been nice and nat 64 kind of lets you do that but in this case you're building an ipv6 network and it will connect as ipv6 okay so besides in this ipv6 section there are other places where some additional ipv six options become available and that is actually prevalent in your routing now if you go to your routing what do we see there that's a shocker suddenly we get here ospf v3 what the heck is that so ospf v3 is ospf but it was made specifically for ipv6 now if we go into our ospf v3 let me just close all the other windows and go back in there ospf v3 you might notice there is a little bit of a change or a difference if we want to compare the boxes so let's just open up the plain ospf box as well so the biggest difference that i can already see when i have a quick look here or a glance is where the heck is my networks i don't specify any networks on ospf v3 okay that feels a bit weird but that is how it is so basically you're just going to set up your instance and you'll have your area still but you're just going to do everything using your interfaces so with your instances you can redistribute whatever routes but your interfaces will allow the ospf to form relationships with neighbors and then they can learn routes through with each other so let's quickly configure ospf on this network so that we can at least learn and redistribute some routes and stuff so i'm just going to double click on this default one i like to just call this my backbone router id so this is router 4 so i'll make this router id folder for the for the four and that's all that i need to do there actually next bit i want to do is go into my bridge because i just want to add a loopback address because this is also pretty standard if you're running a routing protocol is just to because if we go into the ospf this router id this is 32-bit so this doesn't change ever but don't think of the router id as an ip address this is just an identifier so i'm going to add an ip address called for the 4.04.4 on allo 0 i actually don't need to do this but sorry it's it's an old habit and it dies pretty hard okay so let's add our interfaces so this is actually important so you could just put this on all and it will throw it on all interfaces but i already know all my routers connect on ether one so i'll select ether one my area will be backbone and your network type usually this used to be on broadcast and with ipv6 broadcast is not a thing anymore so broadcast networks are dead the only things that you're doing with ipv6 is unicost multi-cost and the new cool kid any cost which is basically where you can assign the same ip address to multiple devices but the closest device would be the one that's preferred for connectivity so you might see this with the stuff like google's dna server 8.8.8.8 most of the countries have some local eight or eight or eight or eight server that they connect to and that's basically like what any cost is doing you're connecting to that local 8.8.8.8 server instead of the one that's sitting in europe or the us or something but broadcast you're never going to use this ignore that you could probably leave this on default i tend to just make this point to multi-point or point to point but i'll make this point to multi-point because those are four routers and i'll just enable vfd because it's a nice protocol so let's apply that and then i need to do the same on all of my other routers so i'm actually not going to add the loopback address on the other router so here's router three let's quickly go into our routing ospf v3 instance call this backbone 30303 the three apply interfaces we can select ether1 use bfd and make it point to multipoint apply so i should actually see a neighbor already and there we go we do see a neighbor and if i look at my neighbors i can see router id 404.04 and there is the address which is the link local address on ether one actually and how many state changes here you can see your lsas what route you're learning and not learning and all that stuff and ospf v3 routers okay cool so let's quickly jump back into the other routers rather one and router two just enable ospf v3 on them as well and sorry i i don't want to make it seem like it's a boring lesson but i want you to see how the network as ipv6 comes online so that you don't just get snips and parts of it because i find it quite lacking in knowledge if if you need to like only look at little parts of snips and see how this stuff is set up and that you don't get the bigger picture because the network is a bigger picture it's not just clicking one setting all right let's go into our interfaces backbone ether1 use bfd ptmp apply two neighbors and now for the last one so routing ospv3 call you backbone for you 2.2.2.2 apply let's add our interfaces ether1 btmp apply so now i should have three neighbors cool so i've got relationships with all of my other routers and i can actually start learning routes and such so on router one let's go back one to router one let's advertise a ipv6 route via ospf quickly so on router 1 as you see there's no networks tab here so we can't broadcast it through there because there is no broadcasting but what we can do is maybe just set up another bridge let's call this l01 or aloe yeah alone is good and let's go into ipv6 go into our addresses make a new address and let's make this address oh by the way if you want to add a loopback address you can just do something like that like i think that's acceptable for a loopback address or that or that or that but let's advertise a range similarly to the one that is connected on our one or on our interfaces so let's make this something like 2002 um thirty three thousand one thousand and let's make that also.1 64. i'll assign this to my l01 and i'll apply that so that's just a ipv6 address that we've assigned to a broadca loopback interface and we're going to now redistribute this route via the ospf so to do that let's go back into our instances double click it and now we can just say redistribute connected routes as type 1 because that is the type of route it would be apply that and if i now go to my other routers so let's go to router two now go into my ipv6 and i go into routes i am learning this 2002 30 3000 1000 64 route through this interface through this ipv6 address so i am learning it through ospf and it is working so if i was going to do something like ping 2002 30 3000 1000 one i can ping it and i can get a response so now we have set up ospf on an ipv6 network okay now the real cool stuff so let's do a little bit of bgp because that is something that i love and a lot of people like bgp because it's the the protocol of the internet so let's go into our routing let's do something between router 1 and router 4 perhaps okay that should be fine so from router 1 i'm going to go into my routing the nice thing about bgp is it works with ipv6 out of the box so you still need the package enable but you see this there's no like bgp v2 or something that you need to work with it's still the same config that you're using so we're going to set up an instance so i might create a new instance called this as100 make the as100 and the router id is 1.1.1.1 and i can just apply this and let's add a pier so our peer what we're going to do is let's look at our peers let's give it a name so i'm just going to call this peer to as maybe 10 103. i'm going to use as100 as my instance and my remote address this will now become my ipv6 address of router 4. so let's go quickly fish that out let me go into my ip addresses router 4 copy that now i've i'm being silly going to ipv6 there is our ipv6 address for router 4. so that's the remote address remote as103 i'm not going to put any folders in but that is pretty good thing to do if we're going to peer and let's maybe advertise a default route to router 4. i'm going to apply that but it's not going to work yet and i know why but we will we'll fix that up after we've established the piers so we need to jump back to router 4. so on router 4 we can go into our routing bgp add a new instance call it as103 as103 apply i'm going to go into my peers add my peer so let's call this peer to as100 my instance is as103 and my remote address is going to be the ipv6 address of router 1. my remote as is 100 everything else i'll leave pretty default i'm not going to send them a default route and let us apply so our peers should actually establish and it has established and i am getting a prefix i am getting a route let's go into our routing and ipv6 actually look at those routes so those are the routes that i'm getting but i'm not seeing this prefix even though it's it's telling me there is a prefix and there's other routes that i actually want to redistribute as well or or send out to the network but i'm not getting them so let's quickly jump back to router one and on router one we first just want to set something up so go back into our pier and what i want you to take note of is in your peer when you go to your advanced tab your address families that's pretty important so address families relate to what type of protocols and stuff can be running over this bgpr and at the moment it's just said for ip which is ipv4 so i need to actually enable ipv6 as well and i can just apply that so let's apply that on both routers and see if there's a difference so i've applied that on both routers the pier is going to reestablish and now i'm getting actually the prefixes i'm expecting let's go into our ipv6 routes now i'm learning a default route through that interface via bgp so we can see we are receiving it from there it is a unicost it is a default route on ipv6 that's what the ipv6 default route looks like and here we can see our bgp details cool so that is working so i actually want to now set up a loopback address on router 4 which i've already done so but but let's create another loopback address call it loopback1 l01 and let's add another ipv6 address let's maybe make this um [Music] 3000 and i'm not going to fill the other stuff in let's just make this three thousand and put that on low one going to apply that actually let's extend that so so people can see have a better look so four thousand five thousand six thousand and these two columns just basically means they're they're a bunch of zeros so let's apply that and now we've got this address so let's actually advertise that route via bgp and it is the same process as on your ipv4 again so go into your bgp we'll go into our networks and then we'll just advertise this new network which is three thousand four thousand five thousand six thousand zero no no we don't need to do zero zero slash 64. we can apply that and now router 4 will be sending this bgp route to router 1. so if i go into my ipv6 i go to routes there is the route that i'm learning via bgp from router 4 on router 1. so now i am also building and learning routes through ipv6 using bgp on microtic i actually think this is where i want to conclude the lesson um because ibv6 again it's something a lot of people don't work on a daily basis and it is also something that is coming quite strong because we are running out of ipv4 addresses we need to get ready with this stuff so please i implore you to actually learn i'll put a link in the description of a video that i watched quite recently that that helped me just um understand ipv6 again a bit more fundamentally better so that i am prepared for when i need to look at transitioning from an ipv4 to ipv6 network um some cool stuff with router version 7 because this is actually something that sucks for me with ipv6 in the current version if i go to my routes there's no there's no vrf that i can configure so i'm fairly limited to what i can do as a service provider with ipv6 network on my critique at the moment which is unfortunate but it it will improve with router version seven so i hope that releases really soon and i'm looking forward to actually testing it and playing around with more features added to the ipv6 functionality of my critique anyways guys i'd like to thank you for watching i hope you've learned something if you did thumbs up the video share it comment all that stuff and if you're confused feel free to comment as well ask me any question that you want regarding ipv6 and i'll see if i can figure it out with you or for you and we can get to some point of understanding everything better together so thanks again for watching see you in the next video bye
Info
Channel: The Network Berg
Views: 2,712
Rating: undefined out of 5
Keywords: #Routers, #CCNA, #CCNP, #MTCNA, #MTCRE, #MTCINE, #Networking, #Computers, #Ethernet, #DHCP, #Configuration, #IPv6, #MikroTik IPv6, #MikroTik OSPFv3, #MikroTik BGP IPv6
Id: X7C3pX2jKNY
Channel Id: undefined
Length: 32min 58sec (1978 seconds)
Published: Wed Nov 18 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.