且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

思科转华为开局设置如此简单,有图有真相

更新时间:2022-09-15 09:02:48





思科转华为开局设置如此简单,有图有真相
华为和思科拓扑图和IP如下               

思科转华为开局设置如此简单,有图有真相

需求如下:配置IP地址,配置主机名,配置远程管理
华为:第一步:给主机配置IP地址

思科转华为开局设置如此简单,有图有真相

第二步:给交换机配置IP,改主机名,设置远程管理如下:
<Huawei>system-view  \\ 进入视图模式
[Huawei]sysname SW1 \\ 给交换机改主机名  
[SW1]undo info-center enable \\ 关闭消息中心
[SW1]interface vlan 1 \\ 进入交换机接口
[SW1-Vlanif1]ip address 192.168.10.2 24 \\ 给交换机配置IP地址在一段
[SW1-Vlanif1]undo shut \\ 开启
Info: Interface Vlanif1 is not shutdown.
[SW1-Vlanif1]q \\ 退出接口
[SW1]header login information # \\ 输入信息
[SW1]user-interface vty 0 4 \\ 开启远程端口
[SW1-ui-vty0-4]authentication-mode password \\使用密码验证
[SW1-ui-vty0-4]set authentication password cipher abc \\ 给远程设置密码abc
[SW1-ui-vty0-4]user privilege level 3 \\ 权限级别为三
[SW1-ui-vty0-4]q
[SW1]super password cipher abc \\ 设置视图密码
第三步:给路由器配置IP,修改主机名。
<Huawei>system view \\ 进入视图模式
[Huawei]sysname R1 \\ 修改路由器名字
[R1] Interface g0/0/0 \\ 进入路由的接口
[R1-GigabitEthernet0/0/0]ip address 192.168.10.1 24 \\ 配置路由ip地址网关
[R1-GigabitEthernet0/0/0]quit \\ 退出
[R1]undo info-center enable  \\ 关闭信息中心
Info: Information center is disabled.
<R1>telnet 192.168.10.2 \\ 远程控制交换机
Trying 192.168.10.2 ...
Press CTRL+K to abort
Connected to 192.168.10.2 ...
Password:           \\ 输入交换机远程密码
<SW1>sy            \\ 进入交换机
[SW1]
 
 
第四步:测试所有设备是否互通,ping一下

思科转华为开局设置如此简单,有图有真相

Ping 192.168.10.1 (路由器的IP地址)
Ping 192.168.10.2 (交换机的IP地址)
测试完成。全部都通了。
 
思科:第一步开始给主机配置IP地址

思科转华为开局设置如此简单,有图有真相

    第二步:给交换机配置IP并且设置远程管理,改主机名步骤如下:
Switch>enable   \\ 进入特权模式
Switch#configure terminal  \\ 进入全局模式
Switch(config)#hostname SW1 \\ 给交换机改名字
SW1(config)#interface vlan 1 \\ 进入交换机的接口
SW1 (config-if)#ip address 192.168.10.2 255.255.255.0 \\ 给交换机配置IP地址
SW1 (config-if)#no shut \\ 开启
SW1 (config-if)#exit \\ 退出
SW1 (config)#enable secret 123 \\ 进入特权模式密码
SW1 (config)#line vty 0 4 \\ 进入远程端口
SW1 (config-line)#password 123 \\ 设置远程控制密码123
SW1 (config-line)#login \\ 运行
SW1 (config-line)#exit \\ 退出
SW1 (config)#end \\ 回到特权模式
SW1#write \\ 保存
Building configuration...
[OK]
 
        第三步:给路由器配置IP地址以及主机名
Router>enable  进入特权模式
Router#conf terminal  \\ 进入全局模式
Router(config)#hostname R1 \\ 修改路由器主机名
R1(config)#inter fa0/0 \\ 进入路由端口
R1(config-if)#ip address 192.168.10.1 255.255.255.0 \\ 给路由器配IP地址
R1(config-if)#no shut   \\ 开启
R1(config)#end       \\ 回到特权模式
R1#write      \\ 保存
Building configuration...
[OK]
第四步:测试所有设备是否互通,ping一下
Ping 192.168.10.1 (路由器的IP地址)
Ping 192.168.10.2 (交换机的IP地址)
测试结果:全部互通!
 

思科转华为开局设置如此简单,有图有真相


本文转自 cs312779641 51CTO博客,原文链接:http://blog.51cto.com/chenhao6/1078261