skterew.blogg.se

Router on a stick vs layer 3 switch
Router on a stick vs layer 3 switch




Also, the route taken to a destination is not necessarily the route that is taken back. Remember, if packets are routed to a destination, a route back must exist. Let’s configure a couple of static routes here: Other options include dynamic routing with RIP, EIGRP, or OSPF. How can we correct this? We saw a number of options we can configure a default route, or a static route. It does not know about networks behind the Layer 3 switch. The router only knows about the connected network, namely the link between the Layer 3 switch and the router. The Layer 3 switch knows about the routers prefix and can route traffic out to the router however, does the router know about the networks traffic is originating from? Does it know about 10.10.10.0 and 20.20.20.0 network? Let’s find out.Ĭ 192.168.1.0/24 is directly connected, FastEthernet0/0 The ping test fails, why? Remember that we need to have bi-directional communication. Now will a ping from the PC’s to the router succeed? Success rate is 80 percent (4/5), round-trip min/avg/max = 0/0/0 ms Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds: Notice that interface fa0/10 is acting like a routed port and has an IP address. %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upīack on the Layer 3 switch, let’s check the routing table:Ĭ 192.168.1.0/24 is directly connected, FastEthernet0/10 %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up On the router, go to interface fa0/0 and configure the port: On the switch, go to interface fa0/10 and configure the port: To test a routed port, let’s add a router to the topology: * – candidate default, U – per-user static route, o – ODRĬ 10.10.10.0 is directly connected, Vlan2Ĭ 20.20.20.0 is directly connected, Vlan3Ī ping to the Default Gateway and a ping to hosts across VLAN’s should now succeed. I – IS-IS, L1 – IS-IS level-1, L2 – IS-IS level-2, ia – IS-IS inter area N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2Į1 – OSPF external type 1, E2 – OSPF external type 2, E – EGP Let’s look at the routing table, now that routing has been enabled:Ĭodes: C – connected, S – static, I – IGRP, R – RIP, M – mobile, B – BGPĭ – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area Note the routing table is empty, why? We have not enabled the routing feature on the Layer 3 switch. Host Gateway Last Use Total Uses Interface We expect to see the virtual interfaces with connected networks: Look at the routing table on the Layer 3 switch. %SYS-5-CONFIG_I: Configured from console by console %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan3, changed state to up %LINK-5-CHANGED: Interface Vlan3, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan2, changed state to up %LINK-5-CHANGED: Interface Vlan2, changed state to up Pings to hosts in the same VLAN will succeed however, pings to hosts from different VLAN will fail (no inter-vlan communication).Ĭreate the virtual interfaces on the Layer 3 switch which will act as the Default Gateway: Let’s check the VLAN port assignments, just like a Layer 2 switch:Īssign IP addresses to our hosts and set the Default Gateway as per the topology. Switch(config-if-range)#switchport access vlan 3 Switch(config-if-range)#switchport access vl Switch(config-if-range)#int range fa0/4 – 5 Switch(config-if-range)#switchport access vlan 2 Switch(config-if-range)#switchport access vlan Switch(config-if-range)#switchport mode access Switch(config-if-range)#switchport mode acc We start by creating the VLAN’s and assign ports to them, just like a L2 switch.Įnter configuration commands, one per line.






Router on a stick vs layer 3 switch