Switch Configuration
Switch Configuration
R3
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int gi0/0
Router(config-if)#no ip routing
Router(config)#int gi0/0
Router(config-if)#ip add 10.1.1.1 255.255.255.0
Router(config-if)#no shut
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up
Router(config-if)#end
Router#
%SYS-5-CONFIG_I: Configured from console by console
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ip default gateway 10.1.1.100
% Ambiguous command: "ip default gateway 10.1.1.100"
Router(config)#ip default?
default-gateway default-network
Router(config)#ip default-gateway 10.1.1.100
Router(config)#end
Router#
%SYS-5-CONFIG_I: Configured from console by console
Router con0 is now available
Press RETURN to get started.
Router>en
Router#ping 10.1.2.1
Router#
Router con0 is now available
Press RETURN to get started.
Router>
Router>en
Router#ping 10.1.2.100
R2
Router>en
Router#config t
Router(config)#no ip route
% Incomplete command.
Router(config)#no ip routing
Router(config)#int gi0/0
% Incomplete command.
Router(config-if)#no shut
Router(config-if)#
Router(config-if)#end
Router#
Router#conf t
Router(config)#end
Router#
Router>int fa 0/0.1
^
% Invalid input detected at '^' marker.
Router>en
Router#int fa 0/0.1
^
% Invalid input detected at '^' marker.
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int gi0/1.1
Router(config-subif)#ip add 10.1.1.100 255.255.255.0
Router(config-subif)#int gi0/0.2
Router(config-subif)#ip add 10.1.2.100 255.255.255.0
Router(config-subif)#exit
Router(config)#
Router con0 is now available
Router>en
Router#ping 10.1.1.100
Router#ping 10.1.2.1
Router#
Router con0 is now available
Router>
Router>
Router>
Router>
Router>
Router>
Router>
Router>
Router>
Router>
Router>
Router>en
Router#sh ip int br
Interface IP-Address OK? Method Status Protocol
GigabitEthernet0/0 unassigned YES unset administratively down down
GigabitEthernet0/0.2 unassigned YES unset administratively down down
GigabitEthernet0/1 unassigned YES unset up up
GigabitEthernet0/1.1 10.1.1.100 YES manual up up
GigabitEthernet0/2 unassigned YES unset administratively down down
Vlan1 unassigned YES unset administratively down down
Router#int gi0/1.2
^
% Invalid input detected at '^' marker.
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int gi0/1.2
Router(config-subif)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1.2, changed state to up
Router(config-subif)#end
Router#
%SYS-5-CONFIG_I: Configured from console by console
Router#ping 10.1.2.100
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int gi0/1.2
Router(config-subif)#ip add 10.1.2.100 255.255.255.0
Router(config-subif)#en
Router(config-subif)#encapsulation D
Router(config-subif)#encapsulation Dot1Q 20
Router(config-subif)#ip add 10.1.2.100 255.255.255.0
Router(config-subif)#END
Router#
%SYS-5-CONFIG_I: Configured from console by console
Router#PING 10.1.2.100
Router#PING 10.1.1.1
Router#
Switch sw1
^
% Invalid input detected at '^' marker.
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int fa0/1
Switch(config-if)#switchport trunk encapsulation dot1q
^
% Invalid input detected at '^' marker.
Switch(config-if)#switchport
Switch(config-if)#switchport t
Switch(config-if)#switchport trunk e
Switch(config-if)#switchport trunk ?
allowed Set allowed VLAN characteristics when interface is in trunking mode
native Set trunking native characteristics when interface is in trunking
mode
Switch(config-if)#switchport mode trunk
Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down
Switch(config-if)#exit
Switch(config)#int fa 0/2
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
% Access VLAN does not exist. Creating vlan 10
Switch(config-if)#int fa 0/3
Switch(config-if)#int fa 0/3
Switch(config-if)#switchport
Switch(config-if)#switchport m
Switch(config-if)#switchport mode a
Switch(config-if)#switchport mode access
Switch(config-if)#s
Switch(config-if)#switch
Switch(config-if)#switchport a
Switch(config-if)#switchport access v
Switch(config-if)#switchport access vlan 20
% Access VLAN does not exist. Creating vlan 20
Switch(config-if)#exit
Switch(config)#config t
^
% Invalid input detected at '^' marker.
Switch(config)#vlan 10
Switch(config-vlan)#ex
Switch(config)#ex
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 20
Switch(config-vlan)#exit
Switch(config)#
Switch(config)#ex
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#sh vlan br
Switch#sh int br
^
% Invalid input detected at '^' marker.
Switch#show int br
^
% Invalid input detected at '^' marker.
Switch#sh ip int br
Interface IP-Address OK? Method Status Protocol
FastEthernet0/1 unassigned YES manual up up
FastEthernet0/2 unassigned YES manual up up
FastEthernet0/3 unassigned YES manual up up
FastEthernet0/4 unassigned YES manual down down
FastEthernet0/5 unassigned YES manual down down
FastEthernet0/6 unassigned YES manual down down
FastEthernet0/7 unassigned YES manual down down
FastEthernet0/8 unassigned YES manual down down
FastEthernet0/9 unassigned YES manual down down
FastEthernet0/10 unassigned YES manual down down
FastEthernet0/11 unassigned YES manual down down
FastEthernet0/12 unassigned YES manual down down
FastEthernet0/13 unassigned YES manual down down
FastEthernet0/14 unassigned YES manual down down
FastEthernet0/15 unassigned YES manual down down
FastEthernet0/16 unassigned YES manual down down
FastEthernet0/17 unassigned YES manual down down
FastEthernet0/18 unassigned YES manual down down
FastEthernet0/19 unassigned YES manual down down
FastEthernet0/20 unassigned YES manual down down
FastEthernet0/21 unassigned YES manual down down
FastEthernet0/22 unassigned YES manual down down
FastEthernet0/23 unassigned YES manual down down
FastEthernet0/24 unassigned YES manual down down
GigabitEthernet0/1 unassigned YES manual down down
GigabitEthernet0/2 unassigned YES manual down down
Vlan1 unassigned YES manual administratively down down
Switch#
Switch#int fa0/1
^
% Invalid input detected at '^' marker.
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int fa0/1
Switch(config-if)#no shut
Switch(config-if)#int fa0/2
Switch(config-if)#no shut
Switch(config-if)#int fa0/3
Switch(config-if)#no shut
Switch(config-if)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#sh ip int br
Interface IP-Address OK? Method Status Protocol
FastEthernet0/1 unassigned YES manual up up
FastEthernet0/2 unassigned YES manual up up
FastEthernet0/3 unassigned YES manual up up
FastEthernet0/4 unassigned YES manual down down
FastEthernet0/5 unassigned YES manual down down
FastEthernet0/6 unassigned YES manual down down
FastEthernet0/7 unassigned YES manual down down
FastEthernet0/8 unassigned YES manual down down
FastEthernet0/9 unassigned YES manual down down
FastEthernet0/10 unassigned YES manual down down
FastEthernet0/11 unassigned YES manual down down
FastEthernet0/12 unassigned YES manual down down
FastEthernet0/13 unassigned YES manual down down
FastEthernet0/14 unassigned YES manual down down
FastEthernet0/15 unassigned YES manual down down
FastEthernet0/16 unassigned YES manual down down
FastEthernet0/17 unassigned YES manual down down
FastEthernet0/18 unassigned YES manual down down
FastEthernet0/19 unassigned YES manual down down
FastEthernet0/20 unassigned YES manual down down
FastEthernet0/21 unassigned YES manual down down
--More--
Switch con0 is now available