![router on a stick config cisco router on a stick config cisco](https://i.stack.imgur.com/SWB4q.png)
Vlan1 unassigned YES unset administratively down downĪs you can see above interface fa0/0.2 and fa0/0.3 are up with their respective IP address configured.
Router on a stick config cisco manual#
Interface IP-Address OK? Method Status ProtocolįastEthernet0/0 unassigned YES unset up upįastEthernet0/0.2 192.168.2.254 YES manual up upįastEthernet0/0.3 192.168.3.254 YES manual up upįastEthernet0/1 unassigned YES unset administratively down down You can view the list of interface using, show ip interface brief command as shown below. IP address command simply assigns IP address to the sub interface. Command encapsulation dot1q 2 means this sub interface will accept frames tagged with VLAN 2 on them. %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.3, changed state to up %LINK-5-CHANGED: Interface FastEthernet0/0.3, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.2, changed state to up
![router on a stick config cisco router on a stick config cisco](https://i.ytimg.com/vi/h5om7TtA8jE/maxresdefault.jpg)
%LINK-5-CHANGED: Interface FastEthernet0/0.2, changed state to up You can configure many sub interfaces under same physical interface. The sub interface can be configured with different IP address. A sub interface is a logical interface that is part of the physical interface. The interface of router connected to switch must have sub interfaces created with dot1q encapsulation. Fa0/0 of R1 is connected to Fa0/7 of Switch1. Here, we need to create TRUNK link between Switch1 and R1. R2 (config-router)# neighbor 80.50.0.1 route-map R1_IN inīGP routing table entry for 94.70.40.For inter vlan routing to work, you need to create TRUNK link between Switch and the router. R2 (config-route-map)# set local-preference 150 R2 (config-route-map)# match community 10 R2 (config)# ip community-list 10 permit 100:999 To configure router R2 to match on specific community and change the prefixes preference: Origin IGP, metric 0, localpref 100, valid, external, best Community: 100:999
![router on a stick config cisco router on a stick config cisco](https://www.routerfreak.com/wp-content/uploads/ROAS-with-lab-files-1.png)
Paths: (1 available, best #1, table Default-IP-Routing-Table) R1# show bgp ipv4 unicast neighbors 80.50.0.2 | i CommunityīGP Community attribute sent to this neighborīGP routing table entry for 94.70.40.0/24, version 6 R1 (config-router)# neighbor 80.50.0.2 send-community R1 (config-route-map)# set community 100:999 R1 (config)# route-map COMMUNITY permit 10 R1 (config)# ip bgp- community new-format To configure router R1 to send prefix marked with community:
![router on a stick config cisco router on a stick config cisco](https://media.geeksforgeeks.org/wp-content/uploads/hsrp1.png)