Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

Router on a Stick

Configuring Switch

1. Login to your switch using console cable


2. Enable password Cisco

Check the interfaces present on your switch to identify the stack number and interface type, as every
switch will have different interface numbers.

Switch# Sh ip int brief ( this command displays all interfaces present on the switch, you can see if the
interfaces are gigabit Ethernet or fast Ethernet and also the stack number of switch)

Create vlans

Conf t# int vlan 2

Ip address 192.168.1.254 255.255.25.0

No shut

Int vlan 3

Ip address 192.168.2.254 255.255.255.0

No shut

Int fa1/0/1

Swictchport trunk encap dot1q

Switchport mode trunk

Switchport trunk allowed vlan all

No shut

Int fa1/0/2

Switchport mode access

Switchport access vlan 2

No shut

Int fa1/0/3

Switchport mode access

Switchport access vlan 3

No shut
Exit

Enable telnet and create telnet password

(config)# line vty 0 15

Password Cisco

Exit

Save configuration by using following command

Switch#Copy run start

Configuring Router

1. Login to router using console


2. Enable password Cisco

Configure logical interfaces

(Config)# int fa0/0

No shut

Exit

Int fa0/0.1

Ip address 192.168.1.253 255.255.255.0

No shut

Int fa0/0.2

Ip address 192.168.2.253 255.255.255.0

No shut

Exit

Save config by using following command

Router#copy run start

Change ip of your laptop

Go to lan settings and set your ip to 192.168.1.1

Subnet mask 255.255.255.0

Default gateway 192.168.1.253

Capture the following:

Running config on router and switch by using sh run command


Ping results: ping from your laptop to 192.168.2.254 at the end and capture the result

Erasing the config:

Once you have captured results go to enable mode and issue the following commands

On switch

Del flash:config.text

Del flash:vlan.dat

Reload

On router

Del flash:config.text

Reload

You might also like