收藏 分销(赏)

思科与华为命令区别.doc

上传人:知****运 文档编号:11424094 上传时间:2025-07-23 格式:DOC 页数:3 大小:87.01KB 下载积分:5 金币
下载 相关 举报
思科与华为命令区别.doc_第1页
第1页 / 共3页
思科与华为命令区别.doc_第2页
第2页 / 共3页


点击查看更多>>
资源描述
功能 Cisco命令 华为命令       进入全局模式 #configure terminal <Quidway>system       显示当前配置 show running-config display current-configuration       显示版本信息 show version display version       显示vlan信息 show vlan display vlan       显示接口信息 show interface 接口 display interface 接口       交换机路由器       命名 hostname 主机名 sysname 主机名       修改特权密码 enable password 密码(明文) enable secret 密码(密文) super password 密码       进入接口模式 interface 接口 interface 接口       进入vlan模式 interface vlan vlan号 interface vlan vlan号       给接口配IP ip address <ip> <掩码> ip address <ip> <掩码>       配telnet密码 line vty 0 4 password 密码 login user-interface vty 0 4 authentication-mode password set authentication-mode password simple 密码 user privilege level 3       激活端口 no shutdown undo shutdown       关闭端口 shutdown shutdown       退出 exit quit       创建VLAN vlan vlan号 vlan vlan号       VLAN中增加       端口 port e0/1 port e0/2 to e0/4       当前端口加入       到VLAN switchport access vlan vlan号 port access vlan vlan号       设置端口工作       模式 switchport mode trunk|access|dynamic port link-type trunk|access|hybrid       设trunk允许的       VLAN switchport trunk allowed vlan remove|add ID port trunk permit vlan ID|All       指定镜像端口 monitor session 1 destination int 接口 monitor-port 接口       指定被镜像端       口 monitor session 1 source int 接口 both port mirror 接口       设置生成树启       动与否 spanning-tree vlan vlan号(默认开启) stp enable|disable(默认关闭)       端口的聚合 interface range f0/1 – 4 channel-group 1 mode on link-aggregation e0/1 to e0/4 ingress|both undo link-aggregation e0/1|all       设置主vlan isolate-user-vlan enable       设置主vlan包括       的子vlan isolate-user-vlan <x> secondary <vlan-list>       显示路由信息 show ip route display ip route       绑定HDLC协议 默认就是 link-protocol hdlc       设静态路由 ip route 网络号 掩码 下一跳IP/接口 ip route-static网络号 掩码 下一跳IP/接口       启用RIP路由 router rip rip rip work rip input rip output       配置路由器的       ID int loopback 0 ip add IP地址 掩码 router id A.B.C.D       启动OSPF协议 router ospf 进程号 ospf enable       配置OSPF区域 net 网络号 反向掩码 area <area_id> int 接口 ospf enable area <area_id>       标准ACL命令格       式 access-list 列表号 permit|deny 源IP 反向掩码 acl <acl-number> [match-order config|auto] rule [normal|special]{permit|deny} [source source-addr source-wildcard|any]       扩展ACL配置 access-list 列表号 permit|deny 协议 源IP 反向掩码 目的IP 反向掩码 eq 端口号 acl <acl-number> [match-order config|auto] rule{normal|special}{permit|deny}{tcp|udp}source {<ip wild>|any}destination <ip wild>|any} eq 服务名             PPP设置 encapsulation ppp link-protocol ppp             Pap 认证 主认证方 (config)#username 用户名 password 密码 (config)#int 串口接口 (config-if)#ppp authentication pap 被认证方 (config)#int 串口接口 (config-if)#ppp pap sent-username 用户名 password 密码 主认证方 local-user 用户名password {simple|cipher} 密码 interface串口接口 ppp authentication-mode pap 被认证方 interface串口接口 ppp pap local-user 用户名 password {simple|cipher} 密码              Chap认证 主认证方 (config)#username 客户端主机名 password 密码 (config)#int 串口接口 (config-if)#ppp authentication (config-if)#ppp chap hostname 服务器主机名 被认证方 (config)#username 服务器主机名 password 密码 (config)#int 串口接口 (config-if)#ppp chap hostname 客户端主机名 主认证方 local-user 对方主机名password {simple|cipher} 密码 interface串口接口 ppp authentication-mode chap ppp chap user 自己主机名 被认证方 interface串口接口 local-user 对方主机名 password {simple|cipher}密码 ppp chap user自己主机名        静态nat (1)为内外部接口配IP并激活; (2)在接口上启用NAT; 内部接口:ip nat inside 外部接口:ip nat outside (3)建立静态地址转换 (config)#ip nat inside source static 私有IP 公网IP interface 接口 nat server global <ip> [port] inside <ip> port [protocol]        动态NAT (1)为内外部接口配IP并激活; (2)在接口上启用NAT; 内部接口:ip nat inside 外部接口:ip nat outside (3)定义内网允许访问外网的ACL (config)#access-list 列表号 permit 源IP 反向掩码 (4)定义合法IP地址池 (config)#ip nat pool 地址池名 公网起始IP 公网终止IP netmask 掩码 (5)实现地址转换 (config)#ip nat inside source list 列表号 pool 地址池名 (1)    建立地址池 nat address-group公网起始IP 公网终止IP pool 1 (2)定义内网允许访问外网的ACL acl 列表号 rule permit source 源IP 反向掩码 rule deny source any (3)实现地址转换 int 公网接口 nat outbound列表号address-group pool 1
展开阅读全文

开通  VIP会员、SVIP会员  优惠大
下载10份以上建议开通VIP会员
下载20份以上建议开通SVIP会员


开通VIP      成为共赢上传

当前位置:首页 > 包罗万象 > 大杂烩

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        抽奖活动

©2010-2025 宁波自信网络信息技术有限公司  版权所有

客服电话:0574-28810668  投诉电话:18658249818

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :微信公众号    抖音    微博    LOFTER 

客服