background image
LAN Switch Configuration 181
Similar to the router IOS, the Catalyst 1900 switch has various configuration modes. Example
4-3 shows the initial configuration of IP and duplex, with the actual prompts showing the very
familiar EXEC and configuration modes.
In the example, the duplex could have been set to one of the following modes:
·
auto--Sets autonegotiation of duplex mode. This is the default option for 100 Mbps TX
ports.
·
full--Sets full-duplex mode.
·
full-flow-control--Sets full-duplex mode with flow control.
·
half--Sets half-duplex mode. This is the default option for 10 Mbps TX ports.
To verify the IP configuration and duplex settings on a given interface, use the show ip and
show interface commands, as seen in Example 4-4.
Example 4-3
Configuration Modes for Configuring IP and Duplex
wg_sw_a# configure terminal
wg_sw_a(config)#ip address 10.5.5.11 255.255.255.0
wg_sw_a(config)#ip default-gateway 10.5.5.3
wg_sw_a(config)# interface e0/1
wg_sw_a(config-if)#duplex half
wg_sw_a(config-if)#end
wg_sw_a
Example 4-4
show ip and show interfaces Output
wg_sw_a#show ip
IP address: 10.5.5.11
Subnet mask: 255.255.255.0
Default gateway: 10.5.5.3
Management VLAN: 1
Domain name:
Name server 1: 0.0.0.0
Name server 2: 0.0.0.0
HTTP server: Enabled
HTTP port: 80
RIP: Enabled
wg_sw_a#
wg_sw_a#sh interfaces
Ethernet 0/1 is Enabled
Hardware is Built-in 10Base-T
Address is 0090.8673.3341
MTU 1500 bytes, BW 10000 Kbits
802.1d STP State: Forwarding Forward Transitions: 1
Port monitoring: Disabled
Unknown unicast flooding: Enabled
Unregistered multicast flooding: Enabled
continues
ch04.fm Page 181 Monday, March 20, 2000 5:02 PM