Router Interfaces
217
shutdown
!
interface Serial0/2/0
no ip address
shutdown
clock rate 2000000
!
[output cut]
For the sake of brevity, I didn’t include my complete running-config, but I’ve displayed all you
need. You can see the two built-in FastEthernet interfaces, the two serial interfaces in slot 0 (0/
0/0 and 0/0/1), the serial interface in slot 1 (0/1/0), and the serial interface in slot 2 (0/2/0). Once
you see the interfaces like this, it makes it a lot easier for you to understand how the modules are
inserted into the router.
Just understand that if you type interface e0 on a 2500, interface fastethernet
0/0 on a 2600, or interface serial 0/1/0 on a 2800, all you’re doing is choosing an inter-
face to configure, and basically, they’re all configured the same way after that.
I’m going to continue with our router interface discussion in the next sections, and I’ll
include how to bring up the interface and set an IP address on a router interface.
Bringing Up an Interface
You can disable an interface with the interface command shutdown and enable it with the no
shutdown command.
If an interface is shut down, it’ll display administratively down when you use the show
interfaces command (sh int for short):
Todd#sh int f0/1
FastEthernet0/1 is administratively down, line protocol is down
[output cut]
Another way to check an interface’s status is via the show running-config command. All
interfaces are shut down by default. You can bring up the interface with the no shutdown
command (no shut for short):
Todd#config t
Todd(config)#int f0/1
Todd(config-if)#no shutdown
Todd(config-if)#
*Feb 28 22:45:08.455: %LINK-3-UPDOWN: Interface FastEthernet0/1,
changed state to up
Todd(config-if)#do show int f0/1
FastEthernet0/1 is up, line protocol is up
[output cut]
47020.book Page 217 Wednesday, January 2, 2008 4:31 PM
Comentários a estes Manuais