background image
634
Appendix B
Configuring the Catalyst 1900 Switch
Command
Description
enable secret
Sets the enable secret password
encapsulation isl 2
Sets ISL routing for VLAN 2
hostname
Sets the name of the switch
int f0/0.1
Creates a subinterface
interface e0/5
Configures Ethernet interface 5
interface ethernet 0/1
Configures interface e0/1
interface f0/26
Configures Fast Ethernet interface 26
interface fastethernet 0/26
Configures interface f0/26
ip address
Sets the IP address of the switch
ip default-gateway
Sets the default gateway of the switch
K
Used at the startup of the 1900 switch and puts
the switch into CLI mode
mac-address-table permanent
Makes a permanent MAC address entry in the
filter database
mac-address-table
restricted
static
Sets a restricted address in the MAC filter
database to allow only the configured interfaces
to communicate with the restricted address
ping
Tests the IP configuration
port secure max-mac-count
Allows only the configured amount of devices to
attach and work on an interface
show int f0/26
Shows the statistics of f0/26
show inter e0/1
Shows the statistics of interface e0/1
show ip
Shows the IP configuration of the switch
show mac-address-table
Shows the filter table created dynamically by
the switch
show run
Shows the running-config
show trunk a
Shows the trunking status of port 26
show trunk b
Shows the trunking status of port 27
Copyright ©2002 SYBEX, Inc., Alameda, CA
www.sybex.com