This configuration is known as a router-on-a-stick. R1(config)#access-list 151 permit tcp any host 192.168.101. You can connect a Cisco switch and router via 802.1q trunking. R1(config)#access-list 150 deny ip any any In the below example with will permit only http traffic to the SRV100 and SRV101 from the opposing VLANS: R1(config)#access-list 150 permit tcp any host 192.168.100.1 eq 80 If you wish to limit the traffic that passes between vlans you can assign an access list to prevent unwanted traffic from traversing the VLANs. Once you have assigned the appropriate IP addresses and gateway to the PCs you will be able to communicate between the VLANS.
R1(config)# interface FastEthernet0/0.101 R1(config)# interface FastEthernet0/0.100 We now need to configure the router: R1# configure terminal SW1(config-if)# switchport access vlan 101 Inter-VLAN routing, also known as router on a stick, involves multiple VLANs connected with switches via trunks, using a single router to allow a degree of communication between the VLANs and access to the Internet. SW1(config-if)# switchport access vlan 100
Cisco router on a stick how to#
The device is called a router on a stick and we’re going to show you how to configure Cisco router on a stick in this article.įirst we shall create the VLANs: SW1#configure terminal Cisco CCNA 200-301 InterVLAN Routing, Router on a Stick & Configuration A host belonging to a VLAN attached to a specific physical port, for example, VLAN 10 in port FastEthernet0/10 is usually not able to communicate to a host attached to another VLAN, for example, VLAN11 attached to port FastEthernet0/11. If you wish to use multiple vlans on your network you will need a layer 3 device to connect these networks. In a normal scenario, if you want to add 10 VLAN to the router means you must need at least 10 physical port to the router, Am I right.