clear 清除屏幕显示
enable 进入配置模式,可以对交换机进行配置和写操作
exit 退出当前配置模式,返回到上一级配置模式
help 显示如何使用命令行中的语法帮助。
list 显示当前可用的命令列表
logout 退出登录,断开连接
quit 退出命令行,断开连接(这个命令跟logout作用相同)
show history 显示已输入的历史命令
show services 显示当前系统提供的服务
show version 显示HammerOS的版本信息
who 显示当前连接到交换机的用户
show idle-timeout 显示idle timeout(空闲超时)时间
命令 描述
enable-password 修改自己进入配置模式的密码
erase startup-config 删除交换机中保存的系统启动配置信息
hostname <hostname> 给交换机重新起个名字,例如本交换机缺省主机名为Harbour
idle-timeout <0-35791> 设置经过多长的空闲等待系统自动进入登录前的状态
show running-config 显示系统当前正在运行的配置
show startup-config 显示系统的启动配置
save {configuration}*1 把当前正在运行的配置写到交换机中并保存。
terminal length <0-512> 设置终端每屏输出的行数
HammerOS system config file/51
ip ospf message-digest
!Version 2.1(1.17.0)>
!Usermanage config
Unt
ip ospf
!t
!Ip multicast confign WAN
ip ospf net
!r
!Vrf confignon-broadca
!|
!MPLS Global configoint-to-point]agged
!o
!Ethernet port configagged trunks:
interface ethernet 2/4s:
ip ospf priority <
mirror ingress 2/1 egress 2/1
ip ospf retransmit-interval
exit
!
!L2 multicas
exitwnstr
interface vlan office 3 2/50
Un
add port 2/49 taggedm dr-priority <0-42949
add port 2/50 untaggedan id is 4
ip pi
exithbor-
interface vlan wan 4ged ports:
add port 2/49 taggedm query-interval <1-18
add port 2/48 untaggedports:
ip pim so
exitr-fil
interface vlan sdf 5>unks:
exitan sd
interface vlan supervlan 6ce-dr-filter source <access
exitddres
interface vlan subvlan 7orts:
ip rip
exitticat
!n