background image
Command-Line Interface
213
The 2522 router has one Ethernet 10BaseT port, and typing interface
ethernet
0 can configure that interface:
Router(config)#int ethernet ?
<0-0> Ethernet interface number
Router(config)#int ethernet 0
Router(config-if)#
The 2500 router, as previously demonstrated, is a fixed configuration
router, which means that when you buy that model, you're stuck with that
configuration.
To configure an interface, you always use the interface type number
sequence, but the 2600, 3600, 4000, and 7000 series routers use a physical
slot in the router, with a port number on the module plugged into that slot.
For example, on a 2600 router, the configuration would be interface type
slot/port
:
Router(config)#int fastethernet ?
<0-1> FastEthernet interface number
Router(config)#int fastethernet 0
% Incomplete command.
Router(config)#int fastethernet 0?
/
Router(config)#int fastethernet 0/?
<0-1> FastEthernet interface number
And make note of the fact that you can't just type int fastethernet 0.
You must type the full command--type slot/port, or int fastethernet
0/0
, or int fa 0/0.
To set the type of connector used, use the media-type command. This is
usually auto-detected:
Router(config)#int fa 0/0
Router(config-if)#media-type ?
100BaseX Use RJ45 for -TX; SC FO for -FX
MII Use MII connector
Bringing Up an Interface
You can turn an interface off with the interface command shutdown, and
turn it on with the no shutdown command. If an interface is shut down, it'll
display administratively down when using the show interface command.
Copyright ©2002 SYBEX, Inc., Alameda, CA
www.sybex.com