consultingdanax.blogg.se

How to configure switch with router on a stick
How to configure switch with router on a stick











how to configure switch with router on a stick

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

how to configure switch with router on a stick

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.













How to configure switch with router on a stick