
用户视图
登陆设备后,直接进入用户模式,只能执行少量查看配置的命令
Info: The max number of VTY users is 10, and the number
of current VTY users on line is 1.
The current login time is 2020-04-10 12:15:00+00:00.
<ZD_agg_5720>
系统视图
用户模式下,输入system-view命令进入视图模式,可执行设备全局配置的命令
<ZD_agg_5720>system-view
Enter system view, return user view with Ctrl+Z.
[ZD_agg_5720]
局部视图
系统视图模式下,输入局部配置命令,进入局部对像的配置视图。如interface GE 1/0/0,进入GE1/0/0端口配置模式
<ZD_agg_5720>system-view
Enter system view, return user view with Ctrl+Z.
[ZD_agg_5720]interface GigabitEthernet 1/0/1
[ZD_agg_5720-GigabitEthernet1/0/1]
信息查看命令
交换机信息查看
display version 查看交换机软件版本
display clock查看交换机时钟
交换机配置查看
display saved-configuration显示系统保存配置
display current-configuration 显示系统当前配置
当前对象信息查看
display this显示当前信息。
display this include-default显示当前接口视图下的接口信息,包括默认值。
display this interface 显示当前接口视图下的接口信息。
查看接口
display interface 查看接口当前运行状态和接口统计信息
display interface brief 查看接口状态和配置的简要信息。
display interface description 查看指定接口的描述信息
display interface vlanif查看VLANIF接口的状态信息、配置信息和统计信息。
查看IP相关
display ip interface 查看接口与IP相关的配置和统计信息,包括接口接收和发送的报文数、字节数和组播报文数,以及接口接收、发送、转发和丢弃的广播报文数。
display ip interface brief 看接口与IP相关的简要信息,包括IP地址、子网掩码、物理链路和协议的Up/Down状态以及处于不同状态的接口数目。
display ip interface description 查看接口与IP相关的简要信息,包括IP地址、子网掩码、物理层状态、链路层协议状态,及接口描述信息和处于不同状态的接口数目。
display ip pool 显示所有ip pool
display ip pool name {pool name} {all|conflict|expired|used} 显示ip pool详细信息
display ip host查看静态DNS表项
display ip socket 查看已创建的IPv4 Socket信息。
display ip statistics 显示IP流量统计信息。
查看路由
display ip routing-table显示路由信息
display ospf peer 查看ospf邻接等信息
display ospf peer brief 查看ospf邻接等简要信息
display rip 查看rip路由信息
网络及流量
display network status { all|tcp|udp|port port-number } 显示IP流量统计信息
display tcp statistics 查看TCP流量统计信息
display udp statistics 查看UDP流量统计信息
VLAN查看
display vlan 显示VLAN信息
display vlan {pvid} verbose 查看vlan的详细信息
display port vlan 查看VLAN中包含的接口信息
display sub-vlan 查看Sub-VLAN类型的VLAN表项信息
display super-vlan查看Super-VLAN类型的VLAN表项信息
display mac-vlan mac-address all 查看所有MAC地址划分VLAN的配置信息
display mac-vlan vlan 2 查看vlan 2 MAC地址划分VLAN的配置信息
查看ACL配置
display acl {all | name | ipv6} 查看ACL
display traffic classifier user-defined 查看用户定义的流分类
display traffic behavior user-defined 查看用户定义的流行为
display traffic policy user-defined {policy name} 查看用户定义的流策略
display traffic-applied {inbound | outbound | interface | vlan} 查看流策略应用情况
display traffic policy {global | interface | statistics | vlan } {inbound | outbound} 查看更多流策略信息
display traffic policy statistics {global | interface | vlan} {inbound | outbound} 查看流策略统计信息
display traffic-filter applied-record 查看acl应用的接口
查看NAT配置
#路由器命令
display nat static {acl | global | inside | interface} 查看静态NAT信息
display nat session {all | dest | number | protocol | source} 查看动态NAT信息
display nat server {acl | global | inside | interface} 查看NAT server信息
配置管理命令
端口管理
port 配置接口的缺省VLAN并加入该VLAN
port description 配置接口的描述信息,描述与接口相连的设备类型。
port gigabitethernet 0/0/1 to 0/0/4
port default vlan 配置接口的缺省VLAN并同时加入这个VLAN。
port link-type {access | hybird | trunk} 配置接口的链路类型
port trunk allow-pass vlan {vlanid}将trunk接口加入vlan
端口配置
speed {10|100|auto} 配置端口工作速率
duplex {half|full|auto}
STRUTS 2,它只是一个视图层的框架,并非持久层框架,它的LIB里面没有包含连接数据库的东西,如果需要连接数据库可以采用JDBC JAVA BEAN的方式,或者采用第三方的连接池,或者与持久层框架(如:Hibernate,Ibatis)结合的方式,来连接数据库。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)