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

Switch>

Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int g1/0/1
Switch(config-if)#sw
Switch(config-if)#switchport mode access
Switch(config-if)#sw
Switch(config-if)#switchport access vlan 10
% Access VLAN does not exist. Creating vlan 10
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#int g1/0/2
Switch(config-if)#sw
Switch(config-if)#switchport mode access
Switch(config-if)#switchport mode access
Switch(config-if)#sw
Switch(config-if)#switchport access vlan 20
% Access VLAN does not exist. Creating vlan 20
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#int vlan 10
Switch(config-if)#
%LINK-5-CHANGED: Interface Vlan10, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, changed state to up

Switch(config-if)#ip add 10.1.10.1 255.255.255.0


Switch(config-if)#no shut
Switch(config-if)#exit
Switch(config)#int vlan 20
Switch(config-if)#
%LINK-5-CHANGED: Interface Vlan20, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan20, changed state to up

Switch(config-if)#ip add 10.1.20.1 255.255.255.0


Switch(config-if)#
Switch(config-if)#no sh
Switch(config-if)#exit
Switch(config)#vlan 10
Switch(config-vlan)#name vlan10
Switch(config-vlan)#exit
Switch(config)#vlan 20
Switch(config-vlan)#name vlan20
Switch(config-vlan)#
Switch(config-vlan)#exit
Switch(config)#%IP-4-DUPADDR: Duplicate address 10.1.10.1 on Vlan10, sourced by
000B.BEC1.294A

Switch(config)#
Switch(config)#
Switch(config)#int vlan 1
Switch(config-if)#ip add 10.1.1.254 255.255.255.0
Switch(config-if)#no sh

Switch(config-if)#
%LINK-5-CHANGED: Interface Vlan1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up

Switch(config-if)#
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#int g1/0/3
Switch(config-if)#ip routing
Switch(config)#int g1/0/3
Switch(config-if)#sw
Switch(config-if)#switchport mode trunk

Route:
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int g0/0/0
Router(config-if)#no shut

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

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


up

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

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


to up

Router(config-subif)#en
Router(config-subif)#encapsulation dot1q vlan 10
^
% Invalid input detected at '^' marker.
Router(config-subif)#en
Router(config-subif)#encapsulation dot1q 10
Router(config-subif)#ip add 10.1.10.254 255.255.255.0
Router(config-subif)#exit
Router(config)#int g0/0/0.20
Router(config-subif)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0/0.20, changed state to up

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


to up

Router(config-subif)#en
Router(config-subif)#encapsulation dot1q 20
Router(config-subif)#ip add 10.1.20.254 255.255.255.0
Router(config-subif)#exit

You might also like