描述 |
思科 |
|
配置明文密码 |
enable password |
set authentication password simole |
进入接口 |
interface type/number |
interface type/number |
进入vlan配置vlan管理地址 |
interface vlan1 |
interface vlan1 |
定义多个端口的组 |
interface range ethID to ID |
port-group 1 group-menber ethID to ID |
设置特权口令 |
enable secret |
super password |
配置接口状态 |
duplex(half/full/auto |
duplex(half/full/auto) |
配置端口速率 |
speed(10/100/1000) |
speed(10/100/1000) |
配置trunk |
switchport mode trunk |
port link-type trunk |
添加、删除vlan |
vlan ID/no vlan ID |
vlan batch ID/undo vlan batch ID |
将端口接入vlan |
switchport access vlan |
port default vlan ID |
查看接口 |
show interface |
display vlan ID |
封装协议 |
encapsulation |
link-protocol |
链路聚合 |
channel-group 1 mode on |
port link-aggregation group1 |
开启三层交换路由 |
ip routing |
默认开启 |
开启接口三层功能 |
no switchport |
undo portswitch |
对跨以太网交换机的VLAN进行动态注册和删除 |
vtp domain |
GVRP |
stp配置根网桥 |
spannning-tree vlan ID root primary |
stp instance id root primary |
配置网桥优先 |
spanning-tree vlan ID priority |
stp primary vlaue |
查看stp |
show spanning-tree |
display stp brief |
引入路由信息 |
redistribute |
import-route |
配置日志信息 |
logging |
info-center |
描述 |
思科 |
华为 |
配置默认路由 |
ip route 0.0.0.0 0.0.0.0 |
ip route-static 0.0.0.0 0.0.0.0 |
配置静态路由 |
ip route 目标网段 掩码 下一跳 |
ip route-static 目标网段 掩码 下一跳 |
查看路由表 |
show ip route |
display ip routing-table |
启用rip并宣告网段 |
route rip.NETwork网段 |
rip/network网段 |
启用ospf |
route ospf |
ospf |
配置ospf区域 |
network ip 反掩码area |
area |
配置RIP v2水平分割 |
no auto-summary |
rip split-hotizon |
查看路由协议 |
show ip protocal |
display ip protocol |
标准访问控制列表 |
access-list 1-99 permit/deny ip |
rule id permit source IP |
拓展访问控 |
access-list 100-199 permit/deny protocol source IP+反码 destination ip+反码 operator operan |
rule{normal|special}{permit|deny}{tcp|udp}source{|any}destination{|any}|operate] |
配置HSRP组 |
vrrp group-number ip virtual-ip |
vrrp vrid number virtual-ip |
配置HSRP优先级 |
vrrp group-number priority |
vrrp vrid number priorty |
配置HSRP占先权 |
vrrp group-number preempt |
vrrp group-number preempt-mode |
配置端口跟踪 |
vrrp group-number rrack |
无 |
配置静态地址转换 |
ip nat inside sourec static |
nat server globalf[Port]insideport[protocol] |
描述 |
思科 |
华为 |
取消、关闭当前设置 |
no |
undo |
显示查看 |
show |
display |
退回上级 |
exit |
quit |
设置主机名 |
hostname |
sysname |
进入全局模式 |
en configter minal |
system-view |
删除文件 |
delete |
delete |
重启 |
reload |
reboot |
保存当前配置 |
write |
save |
创建用户 |
username |
local-user |
静止、关闭端口 |
shutdown |
shutdown |
显示当前系统版本 |
showversion |
display version |
查看已保存过的配置 |
show startup-config |
display current-configuration |
查看当前配置 |
show running-config |
display current-configuration |
取消所有debug命令 |
no debug all |
ctrl+d |
删除配置 |
erase startup-config |
reset saved-configuration |
退到用户视图 |
end |
return |
退出 |
exit |
logout |
指定信息中心配置信息 |
logging |
info-center |
进入线路配置(用户接口模式) |
line |
user-interface |
启动配置 |
start-config |
saved-configuration |
当前配置 |
running-config |
current-configuration |
host名字和ip地址对应 |
host |
ip host |
设置VTY登录密码 |
line vty 0 4 |
user-interface vty 0 4 |