admin管理员组

文章数量:1576999

路由基本配置
2.1 问题
本例要求熟悉配置华为交换机的一些实用技巧,相关说明如下:

配置路由器主机名为Router
为路由器设置终端登录密码Taren1,退出终端重进,验证登录效果
配置路由器接口IP地址并查看
保存配置信息
2.2 步骤
实现此案例需要按照如下步骤进行。

步骤一:配置路由器主机名为Router

配置路由器主机名

<Huawei>system-view 
[Huawei]sysname Router      //修改主机名为Router
[Router]

步骤二:为路由器设置终端登录密码Taren1

1)设置登录密码

<Router> system-view                                 //进系统视图
[Router]user-interface console 0
[Router -ui-console0]authentication-mode password         //启用密码认证
[Router -ui-console0] set authentication password cipher Taren1 //设置终端登录密码为 Taren1

2)先从用户模式quit,然后重新登录测试

Please Press ENTER.
Login authentication
Password:                                          //再次进终端时,要求密码验证
<Router> 

步骤三:配置路由器接口IP地址并查看

1)配置路由器GigabitEthernet 0/0/0接口IP为192.168.1.254

[Router]interface GigabitEthernet 0/0/0     //进入接口
[Router-GigabitEthernet0/0/0]ip address 192.168.1.254 24  //配置IP地址

2)查看配置信息

<Router>display current-configuration    //查看配置信息
……
interface GigabitEthernet0/0/0
 ip address 192.168.1.254 255.255.255.0    //查看到IP地址为192.168.1.254

步骤四:保存配置信息

保存当前配置

<Router> save                                          //保存配置
The current configuration will be written to the device.
Are you sure to continue?[Y/N]Y              //输入Y确认
Now saving the current configuration to the slot 0.
Jul 25 2018 12:46:15-08:00 lsw1 %%01CFM/4/SAVE(l)[2]:The user chose Y when decid
ing whether to save the configuration to the device.
Save the configuration successfully.
<Router>

本文标签: 路由基本配置接口地址ip