220
Chapter 4
"
Introduction to the Cisco IOS and SDM
Internet. Here is an example on how you would configure a router interface to be a
DHCP client:
Todd(config)#iinteface f0/0
Todd(config-if)#ip address dhcp
Todd(config-if)#no shutdown
Creating DHCP pools can be accomplished with the SDM as well.
Using the Pipe
No, not that pipe. I mean the output modifier. (Although with some of the router configura-
tions I’ve seen in my career, sometimes I wonder!) This pipe ( | ) allows us to wade through all
the configurations or other long outputs and get straight to our goods fast. Here’s an example:
Todd#sh run | ?
append Append redirected output to URL (URLs supporting append operation
only)
begin Begin with the line that matches
exclude Exclude lines that match
include Include lines that match
redirect Redirect output to URL
section Filter a section of output
tee Copy output to URL
Todd#sh run | begin interface
interface FastEthernet0/0
description Sales VLAN
ip address 10.10.10.1 255.255.255.248
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 172.16.20.2 255.255.255.0 secondary
ip address 172.16.10.2 255.255.255.0
duplex auto
speed auto
!
47020.book Page 220 Wednesday, January 2, 2008 4:31 PM
Kommentare zu diesen Handbüchern