How to make a simpel router-on-a-stick configuration
Hi Today we will take a look, at how to make a simple router-on-a-stick configuration in Packet tracer. This can be applied in the real word aswell. Switch config Make hostname on the switch (Optional) SW01-S1(config)# hostname SW01-S1 Make Vlans on the switch Here is how to make the 2 Vlans that have to be in the switch. Management and ITDepartment SW01-S1(config)#vlan 10 SW01-S1(config-vlan)#name Management SW01-S1(config-vlan)#exit SW01-S1(config)#vlan 30 SW01-S1(config-vlan)#name ITDepartment SW01-S1(config-vlan)#exit Access interface on the switch Config for IT Department Client SW01-S1 (config)# interface fastEthernet 0/1 SW01-S1 (config-if)# switchport access vlan 30 SW01-S1 (config-if)# switchport mode access SW01-S1 (config-if)# spanning-tree portfast SW01-S1 (config-if)# exit Trunk interface on the switch SW01-S1# configure terminal SW01-S1 (config)# interface gigabitethernet 0/1 SW01-S1 (config-if)# description Link to Trunk to R1-S1 SW01-S1 (config-if)# switchport mode trunk Router config Make hostname to the router (Optional) R1-S1(config)#hostname R1-S1 Sub interfaces on the router Turn on the interface R1-S1(config)#interface GigabitEthernet0/0/1 R1-S1(config-if)#no shutdown R1-S1(config-if)#exit Config sub interface to vlan 10 R1-S1(config)#interface GigabitEthernet0/0/1.10 R1-S1(config-subif)#description Management R1-S1(config-subif)#encapsulation dot1Q 10 R1-S1(config-subif)#ip address 192.168.10.1 255.255.255.0 R1-S1(config-subif)#exit Config sub interface to vlan 30 R1-S1(config)#interface GigabitEthernet0/0/1.30 R1-S1(config-subif)#description ITDepartment R1-S1(config-subif)#encapsulation dot1Q 30 R1-S1(config-subif)#ip address 192.168.30.1 255.255.255.0 R1-S1(config-subif)#exit
Hi Today we will take a look, at how to make a simple router-on-a-stick configuration in Packet tracer. This can be applied in the real word aswell. Switch config Make hostname on the switch (Optional) SW01-S1(config)# hostname SW01-S1 Make Vlans on the switch Here is how to make the 2 Vlans that have to be in the switch. Management and ITDepartment SW01-S1(config)#vlan 10 SW01-S1(config-vlan)#name Management SW01-S1(config-vlan)#exit SW01-S1(config)#vlan 30 SW01-S1(config-vlan)#name ITDepartment SW01-S1(config-vlan)#exit Access interface on the switch Config for IT Department Client SW01-S1 (config)# interface fastEthernet 0/1 SW01-S1 (config-if)# switchport access vlan 30 SW01-S1 (config-if)# switchport mode access SW01-S1 (config-if)# spanning-tree portfast SW01-S1 (config-if)# exit Trunk interface on the switch SW01-S1# configure terminal SW01-S1 (config)# interface gigabitethernet 0/1 SW01-S1 (config-if)# description Link to Trunk to R1-S1 SW01-S1 (config-if)# switchport mode trunk Router config Make hostname to the router (Optional) R1-S1(config)#hostname R1-S1 Sub interfaces on the router Turn on the interface R1-S1(config)#interface GigabitEthernet0/0/1 R1-S1(config-if)#no shutdown R1-S1(config-if)#exit Config sub interface to vlan 10 R1-S1(config)#interface GigabitEthernet0/0/1.10 R1-S1(config-subif)#description Management R1-S1(config-subif)#encapsulation dot1Q 10 R1-S1(config-subif)#ip address 192.168.10.1 255.255.255.0 R1-S1(config-subif)#exit Config sub interface to vlan 30 R1-S1(config)#interface GigabitEthernet0/0/1.30 R1-S1(config-subif)#description ITDepartment R1-S1(config-subif)#encapsulation dot1Q 30 R1-S1(config-subif)#ip address 192.168.30.1 255.255.255.0 R1-S1(config-subif)#exit