OSPF简化命令 例如interface 输入int就行 命令怎么简化啊!!!谁给个简化命令大全

如题所述

你好,你说的这个简化命令大全应该是不存在的。

其实当你输入一条命令的时候,每输入一个字符,路由器会自动匹配适合的命令。
举个例子,比如你要进入配置模式,完整的命令应该是configure terminal
你会依次输入c-o-n-f-i-g-u-r-e t-e-r-m-i-n-a-l
当你输入c以后,系统就把c开头的命令都列出来了,你可以用c?来看,有clear,clock,configure,connect,copy等。
当你再输入o以后,就把co开头的命令列出来,有configure,connect,copy
再输入n以后,就把con开头的列出来,有configure,connect
当你再输入f,就只剩configure这一个了,所以后面的就不用再输了,就用conf来简化成configure。
后面的terminal也是类似的

之所以说没有这样的简化命令大全,是因为不同的设备上,命令是不一样多的,简化的程度也不一样。
比方说,有的路由器上没有connect命令,所以只要你输入con,它就会自动匹配上configure。或者有的路由器上不光有configure,还有个confxxxxx这样的命令,你就不能用conf来简化configure了。

而且,如果真有这样的命令大全,估计也不好记忆,因为简化后已经失去了本身的意义,不能让人一眼看出命令的作用了。最好的方法还是在工作或学习中积累一些常用的简化命令,够用就可以了,不用追求多。

大致的原理就是这样,不知道我讲的是不是清楚。

希望能帮到你!
温馨提示:答案为网友推荐,仅供参考
第1个回答  2011-05-23
简单说下吧:
1、输入简化命令,是为了便于管理员快速输入命令使用,据说类似Linux的命令行;
2、简化输入的原则是:你输入的简化命令不能有二义性!即:你输入Int,只能代表interface,不能有其他的以int开头的命令;
3、如果出现了多个关键字以相同的简称字母打头,可以在输入简称后,直接打问号?!此时会显示在当前模式下,有多少个以此简称开头的关键字,继续输入更多的字符,使其唯一即可!
4、特权模式下的有:
access-enable Create a temporary Access-List entry
access-profile Apply user-profile to interface
access-template Create a temporary Access-List entry
alps ALPS exec commands
archive manage archive files
audio-prompt load ivr prompt
auto Exec level Automation
bfe For manual emergency modes setting
call Voice call
ccm-manager Call Manager Application exec commands
cd Change current directory
clear Reset functions
clock Manage the system clock
cns CNS agents
configure Enter configuration mode
connect Open a terminal connection
copy Copy from one file to another
crypto Encryption related commands.
ct-isdn Run an ISDN component test command
debug Debugging functions (see also 'undebug')
delete Delete a file
dir List files on a filesystem
disable Turn off privileged commands
disconnect Disconnect an existing network connection
dot1x Dot1x Exec Commands
enable Turn on privileged commands
eou EAPoUDP
erase Erase a filesystem
event Event related commands
exit Exit from the EXEC
help Description of the interactive help system
isdn Run an ISDN EXEC command on an ISDN interface
lat Open a lat connection
lock Lock the terminal
login Log in as a particular user
logout Exit from the EXEC
microcode microcode commands
modemui Start a modem-like user interface
monitor Monitoring different system events
more Display the contents of a file
mpls MPLS commands
mpoa MPOA exec commands
mrinfo Request neighbor and version information from a multicast
router
mrm IP Multicast Routing Monitor Test
mstat Show statistics after multiple multicast traceroutes
mtrace Trace reverse multicast path from destination to source
name-connection Name an existing network connection
ncia Start/Stop NCIA Server
no Disable debugging functions
pad Open a X.29 PAD connection
ping Send echo messages
ppp Start IETF Point-to-Point Protocol (PPP)
pwd Display current working directory
release Release a resource
reload Halt and perform a cold restart
rename Rename a file
renew Renew a resource
restart Restart Connection
resume Resume an active network connection
rlogin Open an rlogin connection
rsh Execute a remote command
sdlc Send SDLC test frames
send Send a message to other tty lines
set Set system parameter (not config)
setup Run the SETUP command facility
show Show running system information
slip Start Serial-line IP (SLIP)
squeeze Squeeze a filesystem
ssh Open a secure shell client connection
start-chat Start a chat-script on a line
systat Display information about terminal lines
tarp TARP (Target ID Resolution Protocol) commands
tbct configure TBCT related parameters
tclquit Quit Tool Command Language shell
tclsh Tool Command Language shell
telnet Open a telnet connection
terminal Set terminal line parameters
test Test subsystems, memory, and interfaces
tn3270 Open a tn3270 connection
traceroute Trace route to destination
tunnel Open a tunnel connection
udptn Open an udptn connection
undebug Disable debugging functions (see also 'debug')
upgrade Upgrade software
verify Verify a file
vlan Configure VLAN parameters
voice Voice Commands
where List active connections
which-route Do OSI route table lookup and display results
write Write running configuration to memory, network, or terminal
x28 Become an X.28 PAD
x3 Set X.3 parameters on PAD

无论你输入哪一个,确保输入的简称是可以唯一确定一个单词的就ok了。
第2个回答  2011-05-22
和上面那位老兄一样,其实并没有所谓的简化命令大全,你输入命令时可以简化 比如 int代替interface是因为当你输入int的时候 路由器已经能识别你要输入什么了 因为 前三个字母是int的命令就这么一个,再比如,你要输入 ip route 这时候就不能用 ip rou 来代替了,因为路由器里面还有 router 这个命令。 其实你可以用 tab 键来补全命令的 如果补补全就代表你目前输入的字母还无法让路由器完全识别唯一!
第3个回答  2011-05-27
我告诉你一个最好的办法就是按一个命令的前几个字母 ,再按tab键补全,
习惯以后就不用按tab键了. 所谓简化命令都是个人习惯以后的命令.

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网