码迷,mamicode.com
首页 > 其他好文 > 详细

CISICO与华为命令的对比 (一)

时间:2018-05-02 20:48:26      阅读:148      评论:0      收藏:0      [点我收藏+]

标签:初识cisico

一、cisico的基本配置

(1)router> 用户模式
(2)router# 特权模式
(3)router(config)# 全局配置模式
(4)router(config-if)# 接口模式
(5)Router>enable 从用户模式进入到特权模式
(6)Router#configure terminal 从特权到全局配置模式
(7)Router(config)#interface gigabitEthernet 0/0 进入接口模式

二、cisico与华为命名的部分对比**

技术分享图片
(1).进入console口 设置密码
HW:
<r1>sys
[r1]user-interface console 0
[r1-ui-console0]authentication-mode password
Please configure the login password (maximum length 16):1234
CI:
Router>enable
Router#configure terminal
Router(config)#line console 0
Router(config-line)#login
Router(config-line)#password 1234
(2)更改名字
HW:
<Huawei>sys
[Huawei]sysname r1
CI:
Router>enable
Router#configure terminal
Router(config)#hostname r1
(3)显示端口ip
HW:
[r1]display ip routing-table
CI:
r1#show ip route
(4)显示当前的命令
HW:
[r1]display current
CI:
R1# show run
(5)激活端口--cisico是需要激活的,华为默认自动激活
r1>enable
r1#configure terminal
r1(config)#interface gi 0/0
r1(config-if)#no shutdown
(6)设置ip地址
HW:
[r1]interface gi0/0/0
[r1-GigabitEthernet0/0/0]ip add 192.168.1.1 24
CI:
Router#configure terminal
r1(config)#interface gi 0/0
r1(config-if)#no shutdown
r1(config-if)#ip address 192.168.1.2 255.255.255.0
(7)设置静态路由最后的命令
HW:
[AR1]ip route-static 目标网络 子网掩码 下一跳
CI:
R1#ip route 目标网络 子网掩码 下一跳

CISICO与华为命令的对比 (一)

标签:初识cisico

原文地址:http://blog.51cto.com/13721786/2110971

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!