telnet进入后应该是“参观级”的权限,然后用“super”命令切换到“监控级”权限,然后可以使用“system”切换到“系统级”级。
或者在直接使用super命令来切换命令级别。
super命令默认进入3级权限
格式:super [ level ]
参数:level:用户的级别,为0~3。
举例:
super 3
命令的级别(参观级、监控级、系统级、管理级)简介:
参观级:网络诊断工具命令(ping、tracert)、从本设备出发访问外部设备的命令(包括:Telnet客户端、SSH客户端、RLOGIN)等,该级别命令不允许进行配置文件保存的操作。
User view commands:
display Display current system information
hwtacacs Specify HWTACACS server
nslookup Query Internet name servers
ping Ping function
quit Exit from current command view
rlogin Establish one RLOGIN connection
rsh Establish one RSH connection
super Set the current user priority level
telnet Establish one TELNET connection
tracert Trace route function
监控级:用于系统维护、业务故障诊断等,包括display、debugging命令,该级别命令不允许进行配置文件保存的操作。
boot Set boot option
cd Change current directory
clock Specify the system clock
copy Copy from one file to another
debugging Enable system debugging functions
delete Delete a file
dialer Dialer disconnect
dir List files on a file system
display Display current system information
fixdisk Recover lost chains in storage device
format Format the device
free Clear user terminal interface
ftp Open FTP connection
hwtacacs Specify HWTACACS server
lock Lock current user terminal interface
log Settings of startup configuration log
mkdir Create a new directory
more Display the contents of a file
move Move a file
nslookup Query Internet name servers
ping Ping function
pwd Display current working directory
quit Exit from current command view
reboot Reboot system
refresh Refresh routes
rename Rename a file or directory
reset Reset operation
rlogin Establish one RLOGIN connection
rmdir Remove an existing directory
rsh Establish one RSH connection
save Save current configuration
schedule Schedule system task
screen-length Specify the lines displayed on one screen
send Send information to other user terminal interfaces
start-script Start a script-string on an UI
startup Specify system startup parameters
super Set the current user priority level
system-view Enter the System View
telnet Establish one TELNET connection
terminal Set the terminal line characteristics
tftp Open TFTP connection
tracert Trace route function
undelete Recover a deleted file
undo Cancel current setting
vrbd Show application version
xmodem Establish an xmodem connection
系统级:业务配置命令,包括路由、各个网络层次的命令,这些用于向用户提供直接网络服务。
System view commands:
acl Specify acl configuration information
arp Add static ARP entry
aspf-policy Specify ASPF(Application Specific Packet Filter)
policy configuration information
atm Create ATM class
auto-config Specify auto configuration information
band-based-sharing Specify bandwidth based loadsharing mode
bgp Specify BGP(Border Gateway Protocol) configuration
information
bims Specify bims configuration information
bootfile Boot file control
bridge Config Bridge set
clock Specify the system clock
command Command inputted
command-alias Specify command alias
command-privilege Specify the command level
controller Specify controller configuration view
cpu-usage Specify cpu usage configuration
ddns-server Specify DDNS server type
delete Delete route information
detect-group Detect group
dhcp DHCP configuration subcommands
dialer Specify DCC(Dial-Control-Center) configuration
information
dialer-rule Create a dialer-rule
display Display current system information
dns Specify domain name system
dns-proxy Specify DNS Proxy configuration information
domain Add domain or modify domain attributes
execute Batch Command
file Specify file system configuration information
firewall Specify firewall configuration information
flow-interval Specify the time period for interface statistic
counting
ftp Specify FTP server configuration information
ftp-server Specify an interface or ip address for source
address in FTP connections
gratuitous-arp-learning Gratuitous Arp learning function
gratuitous-arp-sending Sending gratuitous-arp packet when receiving
different sub-network arp packet function
header Specify the login banner
hotkey Specify hotkey configuration information
hwping Specify HWPing test class
hwping-agent Specify HWPing agent task function
hwping-server Specify HWPing server task function
hwtacacs Specify HWTACACS server
icmp Specify ICMP(the Internet Control Message Protocol)
configuration information
ike Specify IKE(Internet Key Exchange) configuration
information
info-center Specify information center configuration information
interface Specify the interface configuration view
ip Specify IP(Internet Protocol) configuration
information
ipsec Specify IPSec(IP Security) configuration information
isdn Specify ISDN configuration information
l2tp Specify L2TP(Layer Two Tunneling Protocol)
configuration information
l2tp-group Specify L2TP(Layer Two Tunneling Protocol) group
configuration information
l2tpmoreexam L2tp command group
local-server Specify local RADIUS server configuration
information
local-user Specify local user configuration information
max-packet-process Router max packet process count
memory Free memory for routing protocols to run normally
nat Specify NAT(Network Address Translation)
configuration information
naturemask-arp Specify Nature Mask Arp function
nslookup Query Internet name servers
ntp-service Specify NTP(Network Time Protocol) configuration
information
ospf Specify OSPF(Open Shortest Path First) configuration
information
ping Ping function
pki Specify PKI module configuration information
port-mapping Specify PAM(Port to Application Mapping)
configuration information
ppp Specify PPP(the Point-to-Point Protocol)
configuration information
pppoe-server Specify PPPoE(PPP over Ethernet) server
configuration information
private-group-id Tunnel-Private-Group-ID attribute description mode
protocol-priority Specify protocol-priority configuration information
qos Specify QoS(Quality of Service) configuration
information
quit Exit from current command view
radius Specify RADIUS configuration information
return Exit to User View
rip Specify RIP(Routing Information Protocol)
configuration information
rmon Specify RMON
route-policy Specify a route policy
router Specify router configuration information
rsa Specify RSA module configuration information
save Save current configuration
script-string Define a modem script-string
service Toggle service mode. By default it is off
sftp Set SFTP service attribute
snmp-agent Specify SNMP(Simple Network Management Protocol)
configuration information
ssh Specify SSH (secure shell) configuration information
ssh-server Specify an interface or ip address for source
address in SSH connections
ssh2 Establish one TELNET connection
standby Specify standby configuration information
super Modify super password parameters
sysname Specify system name and the command line prompt
tcp Specify TCP(Transmission Control Protocol)
configuration information
telnet Specify TELNET configuration information
telnet-server Specify an interface or ip address for source
address in Telnet connections
tftp Open TFTP connection
tftp-server TFTP Server
time-range Specify time-range configuration information
tracert Trace route function
traffic Specify traffic configuration information
undo Cancel current setting
upgrade Upgrade bootrom
user-interface Configure the user terminal interface
vrbd Show application version
vrrp Specify configuration information of VRRP
web Set web info
管理级:关系到系统基本运行、系统支撑模块的命令,这些命令对业务提供支撑作用,包括文件系统、FTP、TFTP、XModem下载、用户管理命令、级别设置命令、系统内部参数设置命令(非协议规定、非RFC规定)等。
最近配置域名系统(DNS),下边是关于DNS的命令:
dns resolve命令用来启动DNS域名解析功能。undo dns resolve命令用来关闭DNS域名解析功能。
缺省情况下,DNS域名解析功能没有开启。
display dns server命令用来显示DNS配置服务器信息
dns server dynamic命令用来显示通过DHCP等协议动态获得的DNS服务器地址。
dns server命令用来配置DNS服务器的IP地址,undo dns server命令用来删除DNS服务器的IP地址。
举例:
# 配置DNS服务器的IP地址。
[H3C] dns server 202.102.224.68
# 删除指定IP地址的DNS服务器。
[H3C] undo dns server 202.102.224.68
# 删除所有DNS服务器。
[H3C] undo dns server
检测DNS域名解析情况可以使用nslookup:
nslookup type命令用来解析指定IP地址对应的域名或解析指定域名对应的IP地址。
reset dns dynamic-host命令用来清空当前DNS Client解析的域名缓存中的内容。
格式:nslookup type { ptr ip-address | a domain-name }
参数:ptr ip-address:解析IP地址对应的DNS域名。
a domain-name:解析DNS域名对应的IP地址。域名长度为小于30的字符串,支持自动域名追加。
举例:
# 解析192.168.1.9对应的域名。
nslookup type ptr 192.168.1.9
# 解析clin003.com对应的IP地址。
nslookup type a clin003.com
静态域名解析配置命令:
display ip host命令用来显示所有主机名和对应的IP地址。
ip host命令用来配置静态域名解析表项,即主机名和对应的IP地址,undo ip host命令用来取消主机名和对应的IP地址。
每个主机名只能对应一个IP地址。缺省情况下,静态域名解析表为空,即无主机名与IP地址对应。
举例:
# 设置主机名router1对应的IP地址为10.110.0.1。
[H3C] ip host router1 10.110.0.1
# 设置主机名router2对应的IP地址为10.110.0.2。
[H3C] ip host router2 10.110.0.2
# 设置主机名router3对应的IP地址为10.110.0.3。
[H3C] ip host router3 10.110.0.3
# 取消主机名router2与IP地址10.110.0.2的对应关系。
[H3C] undo ip host router2 10.110.0.2
DHCP服务:
dhcp enable命令用来使能DHCP服务,undo dhcp enable命令用来禁止DHCP服务。
(在正确配置系统时钟后,DHCP才会正常运行。)
dhcp server ping命令用来配置DHCP服务器发送ping报文的最大数量和最长等待回应时间,undo dhcp server ping命令用来恢复缺省值。
DHCP服务器通过发送ping报文探测地址的使用情况,以防止IP地址的重复分配导致地址冲突。
举例:
# 设置DHCP服务器最多发送10个ping数据包,等待时间采用缺省值500ms。
[H3C] dhcp server ping packets 10
ARP配置命令:
arp static命令用来配置ARP映射表,undo arp命令用来取消ARP映射表中对应地址的映射项。
格式:
arp static ip-address mac-address [ vpn-instance-name ]
undo arp ip-address [ vpn-instance-name ]
参数:
ip-address:为ARP映射项的IP地址,为点分十进制格式。
mac-address:ARP映射项的以太网MAC地址,格式为H-H-H。
vpn-instance-name:VPN实例的名称。
举例:
# 配置IP地址129.102.0.1对应的以太网MAC地址为00e0-fc01-0ec5。
[H3C] arp static 129.102.0.1 00e0-fc01-0ec5
# 配置IP地址11.0.0.1对应的以太网MAC地址为aa-fcc-12
[H3C] arp static 11.0.0.1 aa-fcc-12
display arp命令用来显示ARP映射表。
格式:
display arp [ static | dynamic | all ] [ | { begin text | exclude text | include text } ]
参数:
static:表示显示静态ARP项。
dynamic:表示显示动态ARP项。
all:表示显示所有的ARP项。
|:匹配输出
begin:匹配正则表达式起始的串。
exclude:匹配排除正则表达式的串。
include:匹配包含正则表达式的串。
text:正则表达式。
举例:
# 显示所有ARP表项。
display arp
# 显示静态ARP表项。
display arp static
# 显示动态ARP表项。
display arp dynamic
reset arp命令用来清除ARP映射表中的ARP项。
对指定interface的接口进行操作时,接口类型只能是以太网口、虚拟以太网口,而且只能删除该接口的动态(dynamic)表项。
举例:
# 删除接口Ethernet 0/0/0的ARP映射表中的dynamic项。
reset arp interface Ethernet 0/0/0
# 删除接口Ethernet 0/0/0的ARP映射表中的dynamic项。
reset arp interface Ethernet 0/0/0
H3C AR18-21A(H3C AR 18-2X 系列)手册地址:http://www.h3c.com.cn/Service/Document_Center/IP_Network_Product/Routers/AR_18-2X/AR_18-2X/#命令
今日一点, 服务器
Arp, dns, DNS服务器, h3c, router, 路由器配置
新鲜评论