Router Interfaces
221
interface Serial0/0/0
description Wan to SF circuit number 6fdda 12345678
no ip address
!
So basically, the pipe symbol (output modifier) is what you need to help you get where you
want to go light years faster than mucking around in a router’s entire configuration. I use it
a lot when I am looking at a large routing table to find out whether a certain route is in the
routing table. Here’s an example:
Todd#sh ip route | include 192.168.3.32
R 192.168.3.32 [120/2] via 10.10.10.8, 00:00:25, FastEthernet0/0
Todd#
First, you need to know that this routing table had over 100 entries, so without my trusty pipe,
I’d probably still be looking through that output! It’s a powerfully efficient tool that saves you
major time and effort by quickly finding a line in a configuration—or as the preceding example
shows, a single route in a huge routing table.
Give yourself a little time to play around with the pipe command; get the hang of it, and
you’ll be seriously high on your newfound ability to quickly parse through router output.
Summarizing Some of Our Commands So Far.
Let’s just use some simple terms and apply commands to them:
Enter global configuration mode: Router#configure terminal
Enter interface configuration mode : Router(config)#interface s0/0
Configure the interface IP address : Router(config-if)#ip address 10.1.5.255 255.255.252.0
Enable the interface: Router(config-if)#no shutdown
Label the interface: Router(config-if)#description WAN to Miami
Taking a look at the commands in order:
Router#config t
Router(config)#int s0/0
Router(config-if)#ip address 10.1.5.255 255.255.252.0
Router(config-if)#no shutdown
Router(config-if)#description WAN to Miami
47020.book Page 221 Wednesday, January 2, 2008 4:31 PM
Comentários a estes Manuais