background image
36 Chapter 2: Cisco Internetwork Operating System (IOS) Fundamentals
a single router, the command used to set the parameter is likely to be a configuration sub-
command. Items that are set once for the entire router are likely to be global commands. For
instance, the hostname command is a global command because there is only one host name per
router. The interface ethernet 0 command is a global configuration command because there
is only one such interface in this router. Finally, the ip address command is an interface
subcommand that sets the IP address on the interface; each interface will have a different IP
address.
Figure 2-7
Relationships Among Context-Setting Commands
Mode: Global config
Prompt: hostname(config)#
Commands: Any global,
any context-setting command
Help given on: Global commands,
context-setting commands
Mode: IP RIP config
Prompt: hostname(config-router)#
Commands: RIP commands, Global
commands, Context commands
Help given on: RIP commands
Mode: Console config
Prompt: hostname(config-con)#
Commands: Console commands,
Global commands, Context commands
Help given on: Console commands
Mode: Interface config
Prompt: hostname(config-if)#
Commands: Interface commands,
Global commands, Context commands
Help given on: Interface commands
exit Command or Any Global Command
exit Command
or Any Global
Command
exit Command or Any Global Command
line con0
line con0
interface eth0
interface eth0
interface eth0
line con0
router RIP
router RIP
router RIP
ch02.fm Page 36 Monday, March 20, 2000 4:57 PM