D. Router Command Line Summaries and Shortcuts
9700-A2-GB20-20 December 2002 D-5
encapsulation
encapsulation-type
encapsulation-protocol
[no] frame-relay interface-dlci
dlci-num
interface
intf-type intf-num
[.
sub-intf-num
[point-to-point] ]
no interface
intf-type intf-num.sub-intf-num
[point-to-point]
ip address
ip-addr subnet-mask
no ip address [
ip-addr subnet-mask
]
[
no] ip access-group
access-list-1-199num
[in | out]
[
no] ip dhcp pool
pool-name
ip dhcp relay max-clients
max-dhcp-clients
no ip dhcp relay max-clients
[
max-dhcp-clients
]
[no] ip dhcp-server
ip-address
[no] ip multicast-routing
[
no] ip nat {inside | outside}
[no] ip nat inside source
{list
access-list-1–99num
pool
pool-nam
e [overload ] |
list
access-list-1–99num
interface
intf-type
intf-num
[.
sub-intf-num
] overload |
static {
static-ip-addr1
static-ip-addr2
|
protocol
static-ip-addr1 static-port-num
static-ip-addr2
} }
[
no] ip nat pool
pool-name
start-ip-addr end-ip-addr
{
netmask
netmask
| {prefix-length | / }
prefix-length
}
ip nat translation timeout
time
no ip nat translation timeout [
time
]
ip route
dest-ip
dest-mask
{
next-hop-ip
|
intf-type
intf-num
[.
sub-intf-num
] }
no ip route
dest-ip
dest-mask
[
next-hop-ip
|
intf-type
intf-num
[.
sub-intf-num
] ]
[no] ip routing
[
no] ip unnumbered [null 0]
lease {
days
[
hours
] [
minutes
] | infinite}
no lease [
days
[
hours
] [
minutes
] | infinite]
network
network-num
[ [netmask]
netmask
| {prefix-length | / }
prefix-length
]
no network [
network-num
[ [netmask]
netmask
| {prefix-length | / }
prefix-length
] ]
ping [
protocol
]
dest-ip
[source
source-ip
] [length
bytes
]
[timeout
time
] [interface
intf-type intf-num
[
.sub-intf-num
] ]
[no] service dhcp
traceroute [
protocol
]
dest-ip
[source
source-ip
] [length
bytes
] [timeout
time
]
[
hops
hops
] [interface
intf-type intf-num
[
.sub-intf-num
] ]
Table D-3. CLI Commands (2 of 2)
Command