H3C交换机,路由器常用的一些命令!懂的来,不懂的别乱整,谢谢!!!_百度...
发布网友
发布时间:2022-04-22 20:52
我来回答
共3个回答
热心网友
时间:2022-05-18 00:48
>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
热心网友
时间:2022-05-18 02:06
我是学cisco的 h3c 好像和cisco差不多。只是用的英文单词有区别。
比如:cisco 用 show running-config h3c用 display后面的没怎么用。
其实命令本身不重要,关键是知道如何操作。只要手头有个命令合集就可以了。
设计和排错才是关键。说实话命令除了在考试的时候要背一下 平时都有可能忘记。
学的多了以后 想记住 是很难得 除非天天用。加上练习。毕竟都是英文。
热心网友
时间:2022-05-18 03:41
代码随便去下点资料就有了,找本操作手册就行
学习的话,下个模拟器 cisco packet tracer 就不错 H3C的也有模拟器,就是没用过,你也可以找下
光看代码基本上没啥作用的,得去用才行
根据不同的需要有不同的配置方法,得从原理上明白才可以的