Layer 3 Routing

Prepared By:
Nick Sandoval
Field Application Engineer
April 13, 2013

.......moxa..................................................................................................................................... 14 V........................................... 11 A............................ 2 A. 15 I.................................. 13 Dynamic Routing ... C..................... 7 Dynamic Routing ............................................................................... 3 Static Routing.............................................. C. Routing with the EDR ................................ Layer 3 Switches -2- .. Troubleshooting Tips: ...................... B.......................com/support/download.............. 14 IV.. B............ 11 Routing with more than 1 Router ..................aspx?type=support&id=908  II............ Advanced Routing Lab: .................................................................................................. InterVLAN Routing . Prerequisites:  -Install EDS Search Utility http://www......................................................... 9 III......................................................... Layer 3 Switches......................................... 13 Setting up Static Routing .................................... Prerequisites: ........................................................................................................ 2 II.................. D.................... Routing between two ports .........................................Table of Contents I.................................................................................................... -A firm understanding of IP addressing and the OSI model is required to successfully complete this lab..........................................................

Keep in mind that the computer being used to access the switch must belong to the same network as the switch in order for both devices to communicate. InterVLAN Routing Exercise: Setup the following Procedure: 1. b. there is a prompt for the account and password. By default there is no passwords. so you can simply click in Login without entering any additional information. When the switch’s web interface loads. and 1-3 (all in module 1) have been configured as an Access port type. Once logged in. Setup VLANs a. Select Virtual VLAN option to expand this field and then click on VLAN settings. the first number indicates the module and the second number that is after the dash shows the port number for that module. In this example. c. Alternatively. ports 1-1. there will be configuration options listed on the left side. First log in into the Moxa switch using a web browser like Internet Explorer by typing in the IP address of the switch in the URL field in the web browser. the EDS Search utility can be used. Note that under the port column.A. and thus are connected with VLAN unaware devices such -3- . 1-2.

1-5. This table shows that the switch has been set up for two VLANs segments. any VLAN unaware devices connected to ports 1-1. Port 1-4. f. all settings from the previous slide can be confirmed. VLAN 10 and VLAN 20. e. In the VLAN Table. Devices that are VLAN unaware do not have the ability to send tagged frames required for 802.as most LAPTOPs. 1-2 or 1-3 will belongs to VLAN 10 and communicate to any devices belonging to the VLAN 10 group without routing. -4- . d.1q based VLANs. 1-6 have been configured with Access port type with VLAN 20(PVID 20). As these access ports are configured with PVID 10.

254 with subnet mask 255.0. First go to the Layer 3 settings and then IP interface b.X.X. This name is completely arbitrary is only used to make it easier to administrate. Enter a interface name of your choice but we choose 10.X.0.X. select 10 in VLAN ID’s drop down menu.X for simplicity. Second. d. for VLAN 10. 3. The same configuration applies on VLAN 20 where an appropriate IP Interface address is chosen and is based on the network that VLAN20 belongs to. Then assign IP address of 10.X. for example.0.0. Setup IP Interfaces for each VLAN a.2.0. Verify the routing table -5- . This IP address serves any host in the IP network address 10. c.

Configure the laptops as shown Static IP Parameters and Jargon  Route • A path used for a network routing  Next hop • The IP address of the next router that must be traversed in order to get to the end destination  Network or Destination Address • First IP address of network range  Subnet Mask • The mask that defines the network and host identifiers given an IP  Metric • A parameter that determines the priority of a route and used for deciding between multiple entries in routing -6- .4.

200 / 24 for VLAN 30. Now to setup a static route.200 / 24 for VLAN 20.168. the Interface name of 192. Also created is the interface name of 192.100 / 24 for VLAN 2. As illustrated.168.3.1.168.100 / 24 for VLAN 10 are created. .B. we want to go to the second switch to create two VLans.168.168. Similarly. This static route map will force all traffic be forwarded to the next hop.168.X with IP interface address 192.2.2.X with IP interface address 192.2.3.2. The routing “metric” is the number of routing hops (Routers or Layer 3 switches) to a destination.168. -7- 20 on Layer 3 switch 1 is created. two VLANs need to be created with its own Interfaces on Layer 3 Switch 1. Create the Interface name of 192. The next hop will most likely comprise of another router that will take over the routing. 3. First. Static Routing 1.X with IP interface address 192. Also the interface name of 192.X with IP interface address 192.1.168.

netmask 255. Any packet is sent first to a gateway computer that understands a small part of the Internet.200.0 with a netmask of 255. node.0.2.0 subnet and then forward to 192.255. That gateway then forwards the packet directly to the computer whose address is specified.2. next hop 192.168. you can type 20 in Metric field for reaching destination Node 192.1. You can choose to have the value of 10 each time routing cross one hop.168.255.0 to the dest.168.On Switch 1.255.X to 192. the Destination Address of 192.1.2. After manually configuring the static route on switch 1 and switch 2 respectively. This hop is also the interface with VLAN 20 on switch 2. The gateway computer reads the destination address and forwards the packet to an adjacent gateway that in turn reads the destination address and so forth across the Internet until one gateway recognizes the packet as belonging to a computer within its immediate neighborhood or domain.3. This means that any node located in 192.1.1. it means from 192. The data will be routed to 192. For switch 2.168.2. With the Metric 2.0 (Network ID).0.3.255. -8- . type in the remote network of 192.168. Notice that we configure network or subnet addresses.168. not node addresses.168. it require cross two hops (layer 3 switches) to the destination. 5.3.168.168.168.168. This would enable IP routing from any host from 192. In this case.100 which is an interface of switch 1.0 (Network ID) to the Destination Node located in 192. Additional Notes: Each of these packets contains both the sender's Internet address and the receiver's address.0.100 with Metric 2 is configured.3.168.168.168.X.X need to send packets to the node in 192.3.1.X.0 with next hop of 192. Then the Layer 3 switch 1 will route the Packets to its directly connected network of 192. 4.

168. After configuring this. Follow the same steps as static routing except do no add static routes. For Switch 1: -9- . The Network ID for a VLAN 30 network is 192. As shown in the “All Routing Entry List” located in the switch. a.0.3.168. Setup VLANs b. 6. C.we could physically connect a 192.3. This is the routing table on switch 2. shows that static route was configured correctly on switch 1 as we can see the entry. Dynamic Routing 1.X device to the VLAN 30 network. Setup IP interface for each VLAN 2. we can then check the routing entry created by static routing on the routing table to see if the configuration is applied successfully.

10 - .3. . Verify the routing table to see if the router is learning routes from connected routers. 4.

Login into the switch by typing in the default IP address of 192.254 into your web browser.III.11 - . 2.1. Routing with the EDR A.127.1. For the IP.168. specify “Static”.2 . Routing between two ports Setup an IP for both interfaces 1. Under connection type. enter 190. Change the IP address of the WAN port by clicking on NetworkInterfaceWAN1.

For this demo.168. Change the IP address to 192.12 - . This can be tested by pinging a PC connected on the WAN from the LAN.1. the router automatically traffic from the LAN port to the WAN once you setup the IP address of the ports.1/24 Do not forget to make to choose the gateway of your PC to the router’s LAN IP which is 192.1. 5. change it to 192.3.1.1. Change the IP address of your computer so that it is in the same network as the router.2/24. Change the IP address of the router by clicking on NetworkInterfaceLAN. . That’s it.2.1. 4.

Setting up Static Routing If there are several networks. therefore the router on the left needs to go to 2. then you need to use routing. The lower the metric. the router on the left needs to go through the router on the right.1.13 - .B. then click on “Activate”.168.0/24. choose Routing”Static Route”. In this case. Setup the interfaces 2. When all the data is entered. You can either use Static or Dynamic routing to accomplish this. The Metric chooses the priority level. click on “Add”. Enter the desired address to add in the address table as well as the Next Hop. Choose the IP addresses on the diagram.1. 1. Follow the same steps found in: “Routing between two ports” to setup the ports. The Next Hop is the address of the router that is needed to get there. to get to the network 192. In the Menu. this is the next hop.1. Routing with more than 1 Router 2 Basic Steps for Routers 1. Setup routes C. 2.2. . the higher the priority that route takes.

1.10/30 2.1. Click on RoutingRIP. That is it.1.1.1.1.1. IV.1.6/30 EDR L3 EDS L3 1. 1.5/24 Scenario: Connect as follows: Layer 3 switchRouterRouterLayer 3 switch with host PCs on each end.1.1.D. Enable RIP and choose the appropriate ports that will have routers with RIP enabled.1/24 3.1.1. it is this easy. Advanced Routing Lab: Team up with the team next to you and setup this setup: 2. Dynamic Routing Using Dynamic Routing is by far the easiest way to setup Routing. Choose the IP addresses on the diagram.1. 3.1.1/30 2. To see all the routes the router learned. try setting this up with static routing first.2/30 2. .9/30 2. Try communication between the PCs. check the routing table by clicking on Routing”Routing Table”.1. if so.1.5/24 1.1.14 - . Do you want to prove you are a routing guru.1.1. Follow the same steps found in: “Routing between two ports” to setup the ports.1.5/30 2. 2.1/24 3.

Be careful of the subnet masks and the routing method of choice 3.15 - . you have completed this training course. Troubleshooting Tips: 1. This will allow you to discover where the failures is rather quickly 4. The command “tracert” can be used in command prompt on a PC to see all hops and analyze failures. Test by pinging one interface at a time. The routing table on the routers is very valuable in determining if routes are configured correctly 5. Here is an example: Congratulations.V. . Don’t forget your gateway on your PC 2.