cisco与华为配置命令

上传人:飞*** 文档编号:41860437 上传时间:2018-05-31 格式:DOC 页数:10 大小:87KB
返回 下载 相关 举报
cisco与华为配置命令_第1页
第1页 / 共10页
cisco与华为配置命令_第2页
第2页 / 共10页
cisco与华为配置命令_第3页
第3页 / 共10页
cisco与华为配置命令_第4页
第4页 / 共10页
cisco与华为配置命令_第5页
第5页 / 共10页
点击查看更多>>
资源描述

《cisco与华为配置命令》由会员分享,可在线阅读,更多相关《cisco与华为配置命令(10页珍藏版)》请在金锄头文库上搜索。

1、ciscocisco 与华为命令比较与华为命令比较功能Cisco 命令华为命令进入全 局模式#configure terminalsystem显示当 前配置show running- configdisplay current-configuration显示版 本信息show versiondisplay version显示 vlan 信息show vlandisplay vlan显示接 口信息show interface 接口display interface 接口交换机 路由器命名hostname 主机名sysname 主机名修改特 权密码enable password 密码(明文)ena

2、ble secret 密 码(密文)super password 密码进入接 口模式interface 接口interface 接口进入 vlan 模式interface vlan vlan 号interface vlan vlan 号给接口 配 IPip address ip address 配 telnet 密码line vty 0 4password 密码loginuser-interface vty 0 4authentication-mode passwordset authentication-mode password simple 密码user privilege level

3、3激活端 口no shutdownundo shutdown关闭端 口shutdownshutdown退出exitquit创建 VLANvlan vlan 号vlan vlan 号VLAN 中增 port e0/1加端口port e0/2 to e0/4当前端 口加入到 VLANswitchport access vlan vlan 号port access vlan vlan 号设置端 口工作模式switchport mode trunk|access|dyn amicport link-type trunk|access|hybrid设 trunk 允许的VLANswitchport tr

4、unk allowed vlan remove|add IDport trunk permit vlan ID|All指定镜 像端口monitor session 1 destination int 接口monitor-port 接口指定被 镜像端口monitor session 1 source int 接 口 bothport mirror 接口设置生 成树启动与否spanning-tree vlan vlan 号(默 认开启)stp enable|disable(默认关闭)端口的 聚合interface range f0/1 4channel-group 1 mode onlink-ag

5、gregation e0/1 to e0/4 ingress|bothundo link-aggregation e0/1|all设置主 vlanisolate-user-vlan enable设置主 vlan 包括的子 vlanisolate-user-vlan secondary 显示路 由信息show ip routedisplay ip route绑定 HDLC 协议默认就是link-protocol hdlc设静态 路由ip route 网络号 掩码下一跳 IP/接 口ip route-static 网络号掩码下一跳 IP/接口启用 RIP 路由router ripriprip wo

6、rkrip inputrip output配置路 由器的IDint loopback 0ip add IP 地址 掩码router id A.B.C.D启动 OSPF 协议router ospf 进程 号ospf enable配置 OSPF 区域net 网络号反向掩 码 area int 接口ospf enable area 标准 ACL 命令格式access-list 列表 号 permit|deny 源 IP反向掩码acl match-order config|auto rule normal|specialpermit|deny source source-addr source- wi

7、ldcard|any扩展 ACL 配置access-list 列表 号 permit|deny 协议源 IP 反向掩 码目的 IP 反向掩 码 eq 端口号acl match-order config|autorulenormal|specialpermit|denytcp|u dpsource |anydestination |any eq 服务名PPP 设置encapsulation ppplink-protocol pppPap 认证主认证方(config)#usernam e 用户名 password 密码(config)#int 串 口接口(config-if)#ppp authen

8、tication pap被认证方主认证方local-user 用户名 password simple|cipher密码 interface 串口接口ppp authentication-mode pap被认证方interface 串口接口ppp pap local-user 用户名 password simple|cipher密码(config)#int 串 口接口(config-if)#ppp pap sent- username 用户名 password 密码Chap 认证主认证方(config)#usernam e 客户端主机名 password 密码(config)#int 串 口接口

9、(config-if)#ppp authentication(config-if)#ppp chap hostname 服 务器主机名被认证方(config)#usernam e 服务器主机名 password 密码(config)#int 串 口接口(config-if)#ppp chap hostname 客 户端主机名主认证方local-user 对方主机名 password simple|cipher密码 interface 串口接口ppp authentication-mode chapppp chap user 自己主机名被认证方interface 串口接口local-user 对

10、方主机名 password simple|cipher密码ppp chap user 自己主机名静态 nat(1)为内外部接口 配 IP 并激活;(2)在接口上启用interface 接口nat server global port inside port protocolNAT;内部接口:ip nat inside外部接口:ip nat outside(3)建立静态地址 转换(config)#ip nat inside source static 私有 IP 公网 IP动态 NAT(1)为内外部接口 配 IP 并激活;(2)在接口上启用 NAT;内部接口:ip nat inside外部接口:

11、ip nat outside(3)定义内网允许 访问外网的 ACL(config)#access- list 列表号 permit 源 IP 反 向掩码(4)定义合法 IP 地 址池(config)#ip nat pool 地址池名 公网起始 IP 公 网终止 IP netmask 掩码(5)实现地址转换(1) 建立地址池nat address-group 公网起始 IP 公网终止 IP pool 1(2)定义内网允许访问外网的 ACLacl 列表号rule permit source 源 IP 反向掩码rule deny source any(3)实现地址转换int 公网接口nat outb

12、ound 列表号 address-group pool 1(config)#ip nat inside source list 列表号 pool 地址池名调试命令思科:Switch#show run 显示所有配置命令 Switch#show ip inter brief 显示所有接口状态 Switch#show vlan brief 显示所有 VLAN 的信息 Switch#show version 显示版本信息华为:Quidwaydis cur 显示所有配置命令 Quidwaydisplay interfaces 显示所有接口状态 Quidwaydisplay vlan all 显示所有 V

13、LAN 的信息 Quidwaydisplay version 显示版本信息 二、接口配置命令思科: Switch(config)#interface f0/8 进入接口视图 Switch(config-if)#no shut 此命令开启接口 Switch(config-if)#description to server01 端口描述 Switch(config-if)#ip add 192.168.1.100 255.255.255.0 设置接口 IP 华为: Quidwayinterface e0/1 进入接口视图 Quidwayundo shutdown 此命令开启接口 Quidwayde

14、scription to server02 端口描述 Quidwayip add 192.168.1.102 255.255.255.0 设置接口 IP三、VLAN 配置命令:思科: 建立和删除 VLAN Switch# vlan database Switch(vlan)# vlan 20 name test20 Switch(vlan)# no vlan 20 Switch(vlan)# exit 将端口分配给一个 VLAN Switch(config)# interface f0/1Switch(config-if)# switchport mode access Switch(conf

15、ig-if)# switchport access vlan 20 设置 VLAN TRUNK Switch(config)# interface f0/24 Switch(config-if)# switchport mode trunk Switch(config-if)#switchport trunk allow vlan ID|All Switch(config-if)# switchport trunk encapsulation dot1q华为: 建立和删除 VLAN Quidwayvlan 30 Quidwayundo vlan 30 将端口分配给一个 VLAN Quidwayint ethernet0/1 Quidway-Ethernet0/1port access vlan 30( port default vlan 30) 或Quidwayvlan 30 Quidway-vlan3port ethernet 0/1 在 VLAN 中增加端口 Quidway-vlan3port ethernet 0/1 to ethernet 0/4 在 VLAN 中增加多个 连续端口 设置 VLAN TRUNK Quidwayint e0/24 Quidway-Ethernet0/24 port l

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 商业/管理/HR > 其它文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号