① 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