Skip to content

ripleymj/routerlab

Repository files navigation

UUG Routing Lab

Background Information

Networking Overview Slides

Step 0

For this lab, we're building a network with dynamic routing. We have eight routers, so break yourself into eight teams and take a router. These routers are small Linux powered devices made by MikroTik. For the first few steps, we'll build two separate networks as an A and B team.

Once you've chosen a router and powered it up, connect to its wireless network. All of the routers can be managed by browsing http://192.168.50.1. The username is admin with no password.

Take a moment to explore the MikroTik web interface (though they also have an SSH interface with a similar structure). Pay particular attention to these pages:

  • Interfaces
  • IP -> Addresses
  • IP -> Neighbors
  • IP -> Routes
  • Routing -> OSPF
  • Tools -> Ping
  • Tools -> Traceroute

These routers come preconfigured to act much like you'd expect of a home router, ie one Internet/WAN port, several internal/LAN ports, wireless connected to the internal side, address translation (NAT) to rewrite internal IP addresses to a single outside address, and a handful of firewall rules to filter out malicious traffic. Most of that has been deleted, and replaced with a configuration that accelerates this lab, and more closely resembles an Internet backbone router.

Each port will need to be configured with its own address and subnet. Ports 1 and 2 have been configured as shown on the router's label sticker. They also have a DHCP Server configured, that will hand out addresses to anyone who connects to that port. Ports 3 and 4 have been configured as DHCP clients, so they will try to request an address from the other end of the cable.

Important: to keep things simple, make sure to connect Port 1 or 2 to Port 3 or 4.

Step 1

Now we're going to build four tiny networks. If you have Router 1, find the corresponding Router 2, if you have Router 3, find Router 4. As mentioned above, you want to connect Port 1 to Port 3, as shown here: Image01-01

Now let's look around RouterOS and make sure it understands what we've done. Start with the Interfaces page, where you should see an R next to the connected port. On Router 2 and 4 only go to the IP -> Addresses page to confirm that you've received an address from DHCP. Give that address to your router friend and ask them to ping it. Also try to ping the 192.168.xxx.1 address.

Dynamic Address

Image01-02

Neighbor Discovery

Image01-03

Go to the IP -> Routes page and note that you should have a Connected route.

Image01-04

Step 2

At this point, connect Router 2 to Router 3 following the Port 1 to 3 rule, as shown below. Visit the pages from Step 1 to see the current state of the network. Interfaces should show the correct connections. IP -> Addresses should show an address on all connected ports. IP -> Routes should show several Connected routes.

Image02

Now let's discover a small problem with our network. Since we only have Connected routes, ping will only work over one hop. You can ping from Router 1 to 2, 2 to 3, or 3 to 4. However, you can't ping over two hops, such as from Router 1 to 3, or 2 to 4. Try this!

Step 3 - Establish OSPF

Image03

Navigate to Routing -> OSPF and choose Interfaces. Select Add New and accept the defaults to enable OSPF on all interfaces.

Image03

On the Instances tab, edit the default instance and change the Router ID to your loopback address.

Image03

On the Networks tab, select Add New and accept the defaults.

Image03

Now to confirm your configuration worked, go to the OSPF -> Routes tab.

Image03

Step 4

Image04

Step 5

Breaking things!

Image05

Image06

Image07

BGP Session

Though less documented here, materials for a BGP follow-up session are here.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages