Router on a Stick Configuration

Router on a Stick using Cisco Packet tracer
Router on a stick is used to configure inter-Vlan routing on a router using sub interfaces, from this many protocols can be configured e.g. HSRP .
Practically it is better to enable communication with one device than needing multiple devices as shown.

Using Static Ip address
Here I am testing to see if the PC in the same network can ping each other.

Commands used on the cisco CLI
using these commands I was able to successfully demonstrate a router on a stick