在CLI中,我们可对路由器做全局修改。为此,我们可输入configure terminal (或其简写configt),此时将进入全局配置模式,以修改运行配置。全局命令(在全局模式下执行的命令)只需设置一次,它们影响整台路由器。
在特权模式提示符下,我们可执行命令config,然后按回车接受默认选项terminal,如下所示:
Router#config
Configuring from terminal,memory,or network [terminal]? [press enter]
Enter Configuration commands,one per line.End with CNTL/Z.
Router(config)#
在这种模式下,我们所做的修改将影响整台路由器,因此称为全局配置模式。要修改运行配置(在动态RAM(DRAM)中运行的当前配置),你可使用命令configure terminal,前面演示了这一点。
下面是命令configure的其他一些选项:
Router(config)#exit or press ctrl-z
Router#config?
memory Configure from NV memory
network Configure from a TFTP network host
overwrite-network Overwrite NV memory from TFTP network host
terminal Configure from the terminal
<cr>