您所在的位置: > 主页 > 云南企业新闻网 > 资讯 > 正文
华为网络设备入门基本配置,华为网络设备调试,一分钟了解下!来源: 日期:2021-02-27 11:09:23  阅读:-

    一、实验目的

    掌握进入路由器各种模式,配置登陆 console 口密码,系统视图密码,保存配置,删除配

    置等等基本配置命令,这里不一一列举,请做下面的实验

    华为网络设备入门基本配置,华为网络设备调试,一分钟了解下

    二、拓扑

    华为网络设备入门基本配置,华为网络设备调试,一分钟了解下

    三、步骤

    1:以下为刚进入路由器时的默认模式--用户模式(用户视图),用大于号表示。

    2:用户模式进入特权模式(系统视图):

    system-view

    Enter system view, return user view with Ctrl+Z.

    [Huawei]

    //以上是特权模式。用[]表示

    3:从特权模式进入接口模式:

    [Huawei] interface Ethernet 0/0/0

    [Huawei-Ethernet0/0/0]

    //以上为接口模式。

    [Huawei-Ethernet0/0/0]quit //退出命令

    [Huawei]

    //退出的时候打 quit

    4:系统视图下设置一个名字:

    [Huawei]sysname huawei

    [ huawei ]

    //可以发现路由器的名字己经变成了 huawei

    5 :配置 console 口密码

    [ huawei]user-interface console 0 //进入 console 口配置模式

    [ huawei-ui-console0]authentication-mode password

    //以上设置 console 认证的模式是本地密码的方式,还可以选择不认证与 AAA 认证

    [ huawei-ui-console0]set authentication password cipher huawei

    //以上是设备 console 口登陆密码为 huawei,以后再登陆 console 将需要密码

    [ huawei-ui-console0]quit

    [ huawei]

    6:路由协议模式:

    [ huawei]rip

    [ huawei-rip-1]quit

    [ huawei]ospf

    [ huawei-ospf-1]quit

    [ huawei]isis

    [ huawei]quit

    //以上是进入和退出三种路由协议模式

    7:设置系统时间和时区

    clock timezone Beijing add 8

    clock datetime 19:57:00 2019-12-31

    8:设置 telnet 密码

    [R2]user-interface vty 0 4 //进入 telnet 的虚拟接口 vty 下

    [R2-ui-vty0-4]authentication-mode password

    [R2-ui-vty0-4]set authentication password simple huawei

    [R2-ui-vty0-4]user privilege level 3 //设备登陆进来的权限为控制级

    9:保存配置文件

    save

    The current configuration will be written to the device.

    Are you sure to continue?[Y/N]y

    10:清空配置文件

    reset saved-configuration

    Warning: The action will delete the saved configuration in the device.

    The configuration will be erased to reconfigure. Continue? [Y/N]:y

    11:显示系统运行配置信息

    [R1]display current-configuration

    sysname R1

    ------省略以下部分------

    12、查看路由表

    [R1-Ethernet0/0/0]display ip routing

    Route Flags: R - relay, D - download to fib

    ------------------------------------------------------------------------------

    Routing Tables: Public

    Destinations : 4 Routes : 4

    Destination/Mask Proto Pre Cost Flags NextHop Interface

    12.1.1.0/24 Direct 0 0 D 12.1.1.1 Ethernet0/0/0

    12.1.1.1/32 Direct 0 0 D 127.0.0.1 Ethernet0/0/0

    127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0

    127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0

    四、用户级别和命令级别对应关系表

    华为网络设备入门基本配置,华为网络设备调试,一分钟了解下

    (正文已结束)

    免责声明及提醒:此文内容为本网所转载企业宣传资讯,该相关信息仅为宣传及传递更多信息之目的,不代表本网站观点,文章真实性请浏览者慎重核实!任何投资加盟均有风险,提醒广大民众投资需谨慎!