① cisco与h3c配置命令区别大吗
原理都是一样的
下面是cisco和华为的命令对比 希望楼主采纳
思科华为基础命令对照表
思科 华为
show display
show version disp version
no undo
show run disp current-configuration
username local-user
end return
show start disp saved-configuration
exit quit
exit logout
ctrl+z quit
router rip rip
router ospf ospf
router bgp bgp
hostname sysname
access-list acl
write save
erase delete
0 simple
7 cipher
logging info-center
encapsulation link-protocol例子:
sysname Huawei-R2831 \\设置主机名
interface Ethernet 0/0 进入接口模式
description T0 Switch-A \\接口描述
ip address 192.168.10.222 255.255.255.0 \\配置接口IP地址
undo shutdown \\启用接口
local-user huawei \\建立用户名huawei
password simple huawei \\设置密码为huawei
service-type telnet \\服务类型为telnet
user-interface vty 0 4 \\进入telnet通道,设置5个用户可以同时登陆
authentication-mode scheme \\设置telnet的模式为本地用户名与密码登陆
user-interface console 0 设置console密码
authentication-mode password 密码认证
set authentication password simple huawei
super password simple huawei \\设置super密码,
display version \\查看VRP软件版本
display current-configuration \\查看当前运行的配置
display saved-configuration \\查看已保存过的配置
display interface Ethernet 0/0 \\查看接品参数
display brief interface \\查看接口基本状态
delete flash:/config.cfg \\删除用SAVE保存过的配置
delete flash:/main.bin \\删除VRP的映像文件(谨慎操作)
save \\保存配置
display 和ping 命令在任何视图下都可执行,不必切换到全局配置视图
② h3c与思科交换机基本配置命令对比
Cisco_H3C命令对照
思科Cisco 华为3COM 功能
enable system-view 进入特权模式
configure terminal \ 进入配置状态
show display 显示
show running-config display current 显示目前的运行配置
show version disp version 显示版本
show start disp saved 显示已保存的配置
show tech-support disp base-information 显示全面的信息
no undo 取消(删除)
hostname sysname 更改机器名
\ lang chinese 进入中文状态
user local-user 新建修改用户
end return 退回到系统视图
exit quit 返回上级视图
exit logout telnet退出
router rip rip rip动态路由
router ospf ospf ospf路由
router bgp bgp bgp路由
write save 保存配置
erase delete 删除配置
0 simple 明文
7 cipher 密文
access-list acl 控制访问列表
host ip host host和ip名字对应
logging info-center 日志信息
encap link-protocol 封闭链路层协议
no debug all ctrl+d 取消所有debug命令
vlan database vlan 进入vlan的配置
vtp trunk trunk 设置成为骨干端口
mode \ 模式
trunk 相同 主干线
switchport port 接口控制
access 相同 访问
ip dhcp dhcp 设置dhcp服务器功能
思科华为命令对照表
思科 华为
show display
show version disp version
no undo
show run disp current-configuration
username local-user
end return
show start disp saved-configuration
exit quit
exit logout
ctrl+z quit
router rip rip
router ospf ospf
router bgp bgp
hostname sysname
access-list acl
write save
erase delete
0 simple
7 cipher
logging info-center
encapsulation link-protocol
③ cisco清除路由表的命令是clear ip route * 请问H3C的是什么
这是路由刷新命令,不是清除,而且最好在后头加上个software参数
④ H3c 和Cisco中使用什么命令可以在ospf中引入缺省路由
ospf default-information originate always
这是Cisco的,发布一条0.0.0.0的五类LSA,无论这个路由器是否有默认路由。
⑤ cisco/h3c交换机接口2创建VLAN200,接口24创建trunk口,并欲奴VLAN200通过,请写出全部配置命令.
cisco:
vlan 200
!
interface FastEthernet0/2
switchport access vlan 200
switchport mode access
!
interface FastEthernet0/24
switchport trunk allowed vlan 200
switchport mode trunk
!
h3c:
vlan 200
#
interface GigabitEthernet0/0/2
port link-type access
port default vlan 200
#
interface GigabitEthernet0/0/24
port link-type trunk
port trunk allow-pass vlan 200
#
⑥ h3c路由器有没有类似cisco那种能查看流量的命令
你可以通过display ip count 命令来查看显示IP Accounting统计的IP报文信息。后续有几个子命令,
inbound-packets:显示接收的IP报文的统计信息。
outbound-packets:显示发送的IP报文的统计信息。
exterior:显示exterior表中的IP报文统计信息,exterior表用来记录不符合规则的合法IP报文的统计信息。
firewall-denied:显示被防火墙拒绝的IP报文的统计信息。
interior:显示interior表中的IP报文统计信息,interior表用来记录符合规则的合法IP报文的统计信息。
⑦ cisco与h3c设备的互联
物理链路是up的仅仅是协议down吧?
1.速率问题,最好两端都手动配置speed 100 plex full
2.vlan的封装方式问题,cisco有的较老的例如3550系列交换机,vlan封装采取ISL格式,而dot1q是所有厂商通用的vlan封装格式,在cisco的端口下执行命令encapsulation dot1q即可,这样两端均采用dot1q封装。
⑧ csico和华三的交换机保存命令是不是 CTRL+C都能通用
保存配置还是复制配置?
前者的话:
cisco: route#write
h3c: <h3c>save
后者的话:
因为不支持windows复制快捷键,可以选中后右键-,在本地新建个文本-保存。
或者用secureCRT的log session功能
具体用法:
点击secureCRT的File-log seesion-选择路径和设置文件名。
在设备的CLI下查看配置并翻页至最后,cisco:show run;h3c:dis cur
最后通过File-log session关闭采集。
⑨ H3C交换机,路由器常用的一些命令!懂的来,不懂的别乱整,谢谢!!!
>system-view
]display history-command
]display version
]display current-configuration
]display saved-configuration
]display interface
]display ip interface
]interface ethernet e0/0
S-E0/0]plex full
]vrbd 显示详细系统软件版本信息
]sysname Ra
]user-interface aut
S-ui-aux0]set authentication password cipher/simple wnt 配置password认证口令
]user-interface console 0
S-ui-console0]set authentication password cipher wnt 配置console口令
]user-interface vty 0 4
S-ui-vty0-4]set authyentication password cipher wnt 配置vty口令
]save file-name/safely 保存配置
]reboot
]telnet IP
]ip host hostname ip-address
]display ip host
Ctrl+]
Ctrl+k 断开telnet连接
]display users all 查看telnet会话
]display tcp status 显示tcp连接
]bootfile dir 查看flash中的系统启动文件
]reset saved-configuration 删除启动配置文件
>tftp IP put flash:/config.cfg h3c2831.cfg
备份配置文件到Tftp
>tftp IP get h3c2831.cfg flash:/config.cfg
更新配置文件
>dir
]bootfile dir 查看系统启动文件
]display mac-address dynamic 查看网桥表
]mac-address static mac-address interface-id vlan vlan-id
配置静态网桥表条目
配置管理vlan
]vlan 5
]management-vlan 5
]interface vlan-interface 5
-vlan-interface5]ip address
配置GVRP中继协议
[H3C]gvrp 开启gvrp
[H3C]interface e0/1
[H3C-ethernet e0/1]port link-type access/trunk
[H3C-ethernet e0/1]prot trunk permit all/vlan-id
[H3C-ethernet e0/1]gvrp
[H3C]display gvrp statistics 查看gvrp的状态
配置静态路由
[H3C]ip route-static IP netmask nexthop-IP
配置默认路由
[H3C]ip route-static 0.0.0.0 0.0.0.0 nexthop-IP
查看路由表信息
[H3C]display ip routing-table
配置RIP协议
[H3C]rip
[H3C-rip]network a.b.c.d
路由更新花销最小
[H3C]interface s0/1
[H3C-serial0/1]rip triggered
不连续子网配置辅助IP
[H3C]interface e0/1
[H3C-ethernet0/1]ip address IP netmask sub
配置RIP V2协议
[H3C]rip
[H3C-rip]network a.b.c.d
[H3C-rip]undo summary
[H3C]interface s0/1
[H3C-serial0/1]rip version 2
配置OSPF协议
[H3C]router id 1.1.1.1
[H3C]ospf 1
[H3C-ospf-1]area 0
[H3C-ospf-1]network 10.0.0.0 0.255.255.255
[H3C]display ospf interface 显示运行OSPF接口的信息
[H3C]display ospf cumulative 显示OSPF的统计信息
[H3C]display ospf brief 显示OSPF路由过程的信息
配置Vlan间路由
[H3C]interface e0/0.2
[H3C-ethernet e0/0.2]vlan-type dot1q vid 2
[H3C-ethernet e0/0.2]ip address IP netmask
配置HDLC封装
[H3C]interface s0/0
[H3C-serial0/0]link-protocol hdlc
[H3C-serial0/0]timer hold seconds
配置PPP封装
[H3C]interface s0/1
[H3C-serial0/1]link-procotol ppp
[H3C-serial0/1]timer hold seconds
配置PAP认证
[H3C]interface s0/1
[H3C-serial0/1]link-procotol ppp
[H3C-serial0/1]timer hold seconds
[H3C-serial0/1]ppp authentication-mode pap
[H3C]local-user username
[H3C-ui-user]password simple/cipher password
配置CHAP认证
A端
[H3C]interface s0/0
[H3C-serial0/0]ppp authentication-mode chap chap
[H3C-serial0/0]ppp chap user left
[H3C-serial0/0]ppp chap password cipher wnt
[H3C]local-user right
[H3C]password cipher wnt
B端
[H3C]interface s0/0
[H3C-serial0/0]ppp authentication-mode chap chap
[H3C-serial0/0]ppp chap user right
[H3C-serial0/0]ppp chap password cipher wnt
[H3C]local-user left
[H3C]password cipher wnt
[H3C]display interface s0/0
ACL
[H3C-acl-adv]rule 1 permit 192.46.27.7 0.0.0.0
[H3C-acl-adv]rule 1 deny ip source 1.1.1.1 0
[H3C-acl-adv]rule 1 deny ip destination 2.2.2.2 0
[H3C-acl-adv]rule 1 deny ip source 1.1.1.1 0 destination 2.2.2.2 0
[H3C-acl-avd]rule 101 permit tcp source any destination-port eq www
[H3C-acl-avd]rule 101 permit icmp source any destination 192.78.46.8 0 icmp-type echo-reply
[H3C-acl-adv]rule 101 permit ip source any destination 192.78.46.8 0
[H3C-acl-adv]rule 101 deny tcp source any destination 192.78.46.8 0
[H3C]acl number 3002
[H3C-acl-adv-3002]rule 1 permit icmp destination 192.78.46.8 0
icmp-type echo-reply
[H3C-acl-adv-3002]rule 2 permit tcp destination 192.78.46.8 0
destination-port eq www
[H3C-acl-adv-3002]rule 3 deny ip
[H3C]interface s1/0
[H3C-serial1/0]firewall packet-filter 3002 inbound
VTY-acl
[H3C]user-interface vty 0 4
[H3C-ui-vty0-4]acl 2001 inbond/outbond
[H3C]display firewall-statistics interface serial1/0
[H3C]display acl all
⑩ H3C的基本命令
H3C交换机
1、system-view 进入系统视图模式
2、sysname 为设备命名
3、display current-configuration 当前配置情况
4、 language-mode Chinese|English 中英文切换
5、interface Ethernet 1/0/1 进入以太网端口视图
6、 port link-type Access|Trunk|Hybrid 设置端口访问模式
7、 undo shutdown 打开以太网端口
8、 shutdown 关闭以太网端口
9、 quit 退出当前视图模式
10、 vlan 10 创建VLAN 10并进入VLAN 10的视图模式
11、 port access vlan 10 在端口模式下将当前端口加入到vlan 10中
12、port E1/0/2 to E1/0/5 在VLAN模式下将指定端口加入到当前vlan中
13、port trunk permit vlan all 允许所有的vlan通过
H3C路由器
1、system-view 进入系统视图模式
2、sysname R1 为设备命名为R1
3、display ip routing-table 显示当前路由表
4、 language-mode Chinese|English 中英文切换
5、interface Ethernet 0/0 进入以太网端口视图
6、 ip address 192.168.1.1 255.255.255.0 配置IP地址和子网掩码
7、 undo shutdown 打开以太网端口
8、 shutdown 关闭以太网端口
9、 quit 退出当前视图模式
10、 ip route-static 192.168.2.0 255.255.255.0 192.168.12.2 description To.R2 配置静态路由
11、 ip route-static 0.0.0.0 0.0.0.0 192.168.12.2 description To.R2 配置默认的路由
H3C S3100 Switch
H3C S3600 Switch
H3C MSR 20-20 Router