AVAYA P334TML命令全集Word文档下载推荐.docx
《AVAYA P334TML命令全集Word文档下载推荐.docx》由会员分享,可在线阅读,更多相关《AVAYA P334TML命令全集Word文档下载推荐.docx(13页珍藏版)》请在冰豆网上搜索。
vlan-name>
来配置三层VLAN
●输入命令interface<
interface-name>
来进入端口配置模式
●输入命令ipaddress<
来设置IP地址和子网掩码
●输入命令exit来退出端口配置模式
●输入命令ipdefault-gateway<
●输入命令copyrunning-configstartup-config来保存设置
所有两层命令:
1.Session用来打开一个会话或转换模式
该命令的语法
session[<
mod_num>
[switch|router|atm|mpg|wan]]
mod_num交换机的数量,如果没有指定,则默认为第一台交换机。
2.Terminal用来定义显示在屏幕上字符的高度和宽度
terminal{width|length}[<
characters>
]
3.clearscreen用来清除屏幕显示内容
clearscreen
4.ping使用ping命令发送ICMP请求包测试网络
ping[host<
number>
host主机的名称或IP地址。
number定义ICMP测试包的数量,默认为4个。
5.Showtime用来显示交换机的时间
showtime
showtimezone用来显示时区设置
showtimezone
showtimeparameters用来显示详细的时间参数
showtimeparameters
showiproute用来显示IP路由表
showiproute
showimageversion用来显示交换机的软件版本
showimageversion[<
showdownloadstatus用来显示软件下载情况
showdownloadstatus
showsnmp用来显示snmp信息
showsnmp
showtimeout显示命令行自动退出的时间,默认为15分钟
showtimeout
showlogout显示命令行闲置并退出的时间,默认为15分钟
showlogout
showinterface显示网络接口状态
showinterface
showdevice-mode显示设备运行的模式(路由或交换)
showdevice-mode
showport显示端口工作状态
showport[<
/<
port_num>
mod_num指定是第几台交换机
port_num指定是第几个端口
showportchannel显示端口链路聚合状况
showportchannel[<
showportredundancy显示端口冗余情况
showportredundancy
showportmirror显示端口镜像状况
showportmirror
showportsecurity显示端口安全状况,如果没有指定,则表示所有端口
showportsecurity[<
module>
port>
showinternalbuffering显示分配给每个端口的内部缓冲(最大,最小或中间)
showinternalbuffering<
showmodule显示扩展模块的数量
showmodule
showportflowcontrol显示端口的流量控制
showportflowcontrol<
showcam显示MAC地址
showcam
showtrunk显示VLAN中继
showtrunk<
showvlan显示VLAN划分情况
showvlan
showspantree显示生成树状况
showspantree<
showsystem显示设备状况
showsystem
showtftpdownloadsoftstatus显示软件更新状况
showtftpdownloadsoftstatus
6.dir显示已经更新的版本状态
dir
7.nohostname清除主机名
nohostname
8.hostname指定设备的名称
该命令的语法
hostname[hostname]
9.cleartimezone清除时区
cleartimezone
cleariproute清除IP路由表
cleariproute
clearvlan清除VLAN
clearvlan<
cleardynamicvlans清除动态VLAN
cleardynamicvlans
clearportstatic_vlan清除VLAN中的特定端口
clearportstatic_vlan<
module/port>
[vlannum]
clearcam清除MAC地址
clearcam
10.setlogout设置登出时间
setlogout<
time>
时间单位为分钟
settimezone设置时间显示方式
settimezone<
zone_name>
hours|hours:
min>
例如:
settimezoneGMT–3:
30
settimeprotocol设置时间获得方式
settimeprotocol[sntp_protocol|time_protocol]
settimeserver设置时间服务器
settimeserver<
ipaddress>
settimeclient设置客户端时间启用或者禁用
settimeclient<
enable|disable>
setiproute设置IP路由表
setiproute<
destination>
setdevice-mode设置设备工作模式
setdevice-mode<
mode>
mode:
Router|layer2
setinterface用来设置设备的管理IP地址
ip_address>
inband:
用于管理接口的名称
vlan:
用于管理的VLAN号
ip_address:
要分配的IP地址
netmask:
要分配的子网掩码
setportlevel设置端口的优先级
setportlevel[module/port]{value}
value:
0-7之间的数字,0为最低,7为最高。
Setportnegotlation设置端口自动协商功能
setportnegotiation<
{enable|disable}
setportenable设置端口有用
setportenable<
setportspeed设置端口速率
setportspeed<
{value}
10MB/100MB
setportduplex设置双工模式
setportduplex<
{full|half}
full|half:
全双工或半双工模式
setportname设置端口名称
setportname<
[name]
setportvlan设置VLAN的端口
setportvlan<
value>
setportchannel设置端口聚合
setportchannel[port_list][value][name]
port_list:
定义端口号
on/off,enable/disable
name:
端口聚合的名称
setportredundancy设置端口冗余
setportredundancy<
{on/off}[redundancy_name]
setportredundancy{enable|disable}
setportmirror
setportmirrorsource-port<
mirror-port<
setportspantree设置端口生成树
setportspantree{enable|disable}[module/port]
setportsecurity设置端口安全
setportsecurity{enable|disable}<
setinbandvlan设置管理地址的VLAN号
setinbandvlan<
setvlan设置VLAN
setvlan<
vlan_id>
vlan_name>
settrunk设置vlan中继
settrunk<
[value]
module/port:
模组号/端口号
off/dotlq
setwelcomemessage设置欢迎信息
setwelcomemessage[string]
11.synctime时间同步
synctime
12.reset重新启动
reset
13.nvraminitalize回复出厂值
nvraminitalize[switch|all]
switch:
恢复2层到出厂值
all:
恢复所有设置到出厂值
14.Copystack-configtftp保存配置文件到TFTP服务器
copystack-configtftp<
filename>
ip>
15.copytftpstack-config下载配置文件从TFTP服务器
copytftpstack-config<
16.copytftpSW_image更新软件版本
copytftpSW_image<
image-file>
EW_archive<
17.setradiusauthenticationsecret启用RADIUS认证服务
setradiusauthencationsecret<
password>
18.setraduisanthenticationserver设置RADUIS服务器
setraduisanthenticationserver<
primary|secondary>
19.clearraduisanthenticationserver清除RADUIS服务器
clearraduisanthenticationserver{primary|secondary}
20.setraduisanthenticationretrytime设置验证超出时间
setraduisanthenticationretrytime<
21.setraduisanthenticationudp-port设置验证UDP端口
setraduisanthenticationudp-port<
默认是使用2138,有些服务器使用1812或1645端口
22.Username增加新用户
username<
name>
password<
access_type{read_only|redy_write|admin}
23.nousername清除用户
nousername<
24.showusername显示用户名
showusername
25.showraduisauthentication显示验证信息
showraduisauthentication
26.setraduisauthentication开启或者关闭RADUIS
setraduisauthentication[enable|disable]
所有三层命令:
1.Hostname<
hostname>
配置交换机名称。
Nohostname<
取消交换机名称。
2.Showdevice-mode显示设备工作模式。
3.Showcopystatus显示复制本地配置状态。
4.Showtftpdownloadstatus显示从TFTP下载状态。
5.Showtftpuploadstatus显示上传到TFTP服务器的状态。
6.Showrunning-config显示设备配置状态。
7.Showstartup-config显示设备开机加载状态。
8.Showsystem显示设备参数。
9.Setdevice-mode<
设置设备运行状态。
Mode:
Router|Layer2
10.Copytftpstartup-config<
从TFTP服务器上下载配置文件。
Filename文件名(全名)。
IpTFTP服务器的IP地址。
11.Copyrunning-configtftp<
复制配置文件到tftp服务器。
12.Copyrunning-configstartup-config保存配置文件到启动项。
13.Copystartup-configtftp<
保存启动文件到TFTP服务器。
14.Erasestartup-config消除启动文件。
15.Reset重新启动设备。
16.Traceroute<
跟踪路由。
17.Showiproute显示路由表。
18.Showiproutebesr-match<
destinationaddress>
显示到目标IP的最佳路由。
19.Showiproutestatic显示静态路由。
20.Showiproutesummary显示路由概要。
21.Showiparp显示所有的ARP转换表。
22.Showipreverse-arp显示所有的RARP转换表。
23.Showipinterface<
inerface-name>
|<
显示接口状态。
24.Showipprotocol<
protocol>
显示所用的路由协议。
Protocol:
RIP|OSPF
25.Interface<
interface>
进入接口配置模式。
26.Ipdefault-gateway<
设置默认网关。
27.Iproute<
mask>
next-hop>
设置静态IP路由
Noiproute<
清除一条静态路由。
28.Cleariproute*清除所有活动的路由。
29.Iprouting启用IP路由。
30.Arp<
macaddress>
使用IP和MAC绑定。
Noarp<
mac-address>
解除绑定。
31.Ipaddress<
设置端口IP地址。
32.Ipvlan<
vlanid>
跟在IPADDRESS后面,用来激活VLAN的IP地址。
33.Routerrip使用RIP动态路由协议。
34.Redistribute<
使用路由重分配。
35.Network<
添加本地网络进入路由表项。
36.Ipripripversion<
1>
2>
使用RIP第一版或者第二版。
37.Ipripdefault-route-mode<
改变RIP接口状态。
Talk–listen使用RIP接收和发送路由更新包。
Talk-only使用RIP只发送路由更新包。
38.Showipospf显示OSPF动态路由状态。
39.Showipospfinterface显示ospf接口状态。
40.Showipospfneighbor显示ospf邻居状态。
41.Showipospfdatabase显示OSPF数据库。
42.Routerospf启用ospf动态路由协议。
Norouterospf取消OSPF。
43.[no]area<
areaid>
stub>
配置自治号,默认是
44.Network<
添加本地网络到ospf路由自治号。
45.[no]ipbootp-dhcprelay配置bootp和dhcp中继。
46.Ipbootp-dhcpserver<
设置dhcp和bootp服务器的IP地址。
47.[no]ipbootp-dhcpnetwork<
设置接口获得的IP网段,注意必须先进入接口配置模式。
48.Showaccess-group显示活动的访问列表。
49.Showipaccess-lists<
policy-list-number>
显示当前的控制列表。
50.[no]ipaccess-group<
default-action>
配置访问表。
Policy-list-number访问表号(从100到199)。
Default-actiondefault-action-deny|default-action-permit。
51.[no]ipaccess-list<
access-list-number>
access-list-index>
command>
<
any<
sourceip>
ipaccess-list10123denyipany禁止
52.Showvlan显示vlan分配情况。
53.Setvlan<
vlanname>
设置VLAN。
54.Clearvlan<
清除vlan。