路由基本配置(接口设置ip地址)

路由基本配置
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>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值