0% found this document useful (0 votes)
2 views2 pages

VLAN Configuration for Switches and Router

The document outlines the configuration steps for three switches (SW1, SW2, SW3) and a router (R1). Each switch is set up with VLANs 10 and 20, with specific ports assigned to these VLANs, while the router is configured with subinterfaces for inter-VLAN routing. The configurations include setting hostnames, VLAN names, and interface modes for access and trunking.

Uploaded by

rozananabil628
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views2 pages

VLAN Configuration for Switches and Router

The document outlines the configuration steps for three switches (SW1, SW2, SW3) and a router (R1). Each switch is set up with VLANs 10 and 20, with specific ports assigned to these VLANs, while the router is configured with subinterfaces for inter-VLAN routing. The configurations include setting hostnames, VLAN names, and interface modes for access and trunking.

Uploaded by

rozananabil628
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

SW1

-----
Switch>
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#host
Switch(config)#hostname SW1
SW1(config)#vlan 10
SW1(config-vlan)#name IT
SW1(config-vlan)#vlan 20
SW1(config-vlan)#name HR
Sw1(config)#int fa0/1
Sw1(config-if)#switchport mode access
Sw1(config-if)#switchport access vlan 10
Sw1(config)#int fa0/2
Sw1(config-if)#switchport mode access
Sw1(config-if)#switchport access vlan 20
Sw1(config)#int g0/1
Sw1(config-if)#switchport mode trunk
SW1(config)#int g0/2
SW1(config-if)#switchport mode trunk

SW2
---
Switch>
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#host
Switch(config)#hostname SW2
SW2(config)#vlan 10
SW2(config-vlan)#name IT
SW2(config-vlan)#vlan 20
SW2(config-vlan)#name HR
Sw2(config)#int fa0/1
Sw2(config-if)#switchport mode access
Sw2(config-if)#switchport access vlan 10
Sw2(config)#int fa0/2
Sw2(config-if)#switchport mode access
Swi2(config-if)#switchport access vlan 20
Sw2(config)#int g0/1
Sw2(config-if)#switchport mode trunk
SW2(config)#int g0/2
SW2(config-if)#switchport mode trunk

SW3
-----

Switch>
Switch>en
Switch#conf
Switch(config)#hostname SW3
SW3(config)#int range g0/1-2
SW3(config-if-range)#switchport mode trunk
SW3(config-if-range)#exit
SW3(config)#int fa0/1
SW3(config-if)#switchport mode trunk
SW3(config)#vlan 10
SW3(config-vlan)#name IT
SW3(config-vlan)#vlan 20
SW3(config-vlan)#name HR

Router
-------
Router>
Router>EN
Router#CONF T
Router(config)#hostname R1
R1(config)#int g0/0
R1(config-if)#no sh
R1(config)#int g0/0.10
R1(config-subif)#encapsulation dot1Q 10
R1(config-subif)#ip address [Link] [Link]
R1(config-subif)#exit
R1(config)#int g0/0.20
R1(config-subif)#encapsulation dot1Q 20
R1(config-subif)#ip address [Link] [Link]

-----------------------------------------------------------------------------------
---

You might also like