0% found this document useful (0 votes)
3 views

TP-VLAN

The document outlines the configuration steps for a switch and a router involving VLANs. Two VLANs are created on the switch (VLAN 10 and VLAN 20), and specific ports are assigned to these VLANs. The router is configured with sub-interfaces for each VLAN, including IP addresses and encapsulation settings.

Uploaded by

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

TP-VLAN

The document outlines the configuration steps for a switch and a router involving VLANs. Two VLANs are created on the switch (VLAN 10 and VLAN 20), and specific ports are assigned to these VLANs. The router is configured with sub-interfaces for each VLAN, including IP addresses and encapsulation settings.

Uploaded by

issam.salhi.g2
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

TP *VLAN*

Switch Configuration

Switch>en
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#vlan 10
Switch(config-vlan)#name inf
Switch(config-vlan)#exit

Switch(config)#vlan 20
Switch(config-vlan)#name elec
Switch(config-vlan)#exit

Switch(config)#exit
Switch#

Switch#en
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#int fa0/1
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
Switch(config-if)#exit

Switch(config)#int fa0/2
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 20
Switch(config-if)#exit

Switch(config)#int fa0/3
Switch(config-if)#switchport mode trunk
Switch(config-if)#exit
Switch#

Router Configuration

Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#int gig0/0

Router(config-if)#no shutdown

Router(config-if)#exit
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to up

Router(config)#int gig0/0.10
Router(config-subif)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0.10, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0.10, changed state to


up

Router(config-subif)#encapsulation dot1q 10
Router(config-subif)#ip address 192.168.1.1 255.255.255.0
Router(config-subif)#exit

Router(config)#int gig0/0.20
Router(config-subif)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0.20, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0.20, changed state to
up
Router(config-subif)#encapsulation dot1q 20
Router(config-subif)#ip address 192.168.3.1 255.255.255.0
Router(config-subif)#exit

You might also like