background image
180 Chapter 4: Bridges/Switches and LAN Design
Basic IP and Port Duplex Configuration
Two features commonly configured immediately during switch installation are TCP/IP support
and the setting of duplex on key switch ports. Switches support IP, but in a very different way
than with a router. The switch acts more like a normal IP host, with a single address/mask for
the switch and a default router. Each port/interface does not need an IP address because the
switch is not performing Layer 3 routing. In fact, if there were no need to manage the switch,
IP would not be needed on the switch at all.
The second feature typically configured at installation time is to preconfigure some ports to
always use half or full duplex rather than allow negotiation. At times, autonegotiation can
produce unpredictable results. For instance, if a device attached to the switch does not support
autonegotiation, the Catalyst switch sets the corresponding switch port to half-duplex mode by
default. If the attached device is configured for full duplex, late collision errors will occur at the
full-duplex end. To avoid this situation, manually set the duplex parameters of the switch to
match the attached device when support for autonegotiation is in question.
Example 4-2
show run Output Refers to Port e0/1 as Interface Ethernet 0/1
wg_sw_d#show running-config
Building configuration...
Current configuration:
!
!
interface Ethernet 0/1
!
interface Ethernet 0/2
! Portions omitted for brevity...
wg_sw_d#show spantree
Port Ethernet 0/1 of VLAN1 is Forwarding
Port path cost 100, Port priority 128
Designated root has priority 32768, address 0090.8673.3340
Designated bridge has priority 32768, address 0090.8673.3340
Designated port is Ethernet 0/1, path cost 0
Timers: message age 20, forward delay 15, hold 1
! Portions omitted for brevity...
wg_sw_a#show vlan-membership
Port VLAN Membership Type Port VLAN Membership Type
------------------------------------------------------------------
1
5 Static 13 1 Static
2 1 Static 14 1 Static
3 1 Static 15 1 Static
ch04.fm Page 180 Monday, March 20, 2000 5:02 PM