• ensp学习2 ensp设置接口ip


    1、设备型号
    image
    2、右键CLI进入命令行

    The device is running!
    
    <Huawei>The device has not been started!
    The device has not been started!
    ################################################################################
    ##
    

    3、直接输portswitch报错

    <Huawei>undo portswitch
                 ^
    Error: Unrecognized command found at '^' position.
    <Huawei>ls
            ^
    Error: Unrecognized command found at '^' position.
    <Huawei>dev
            ^
    Error: Unrecognized command found at '^' position.
    <Huawei>sys
    Enter system view, return user view with Ctrl+Z.
    [Huawei]undo portswitch
                 ^
    Error: Unrecognized command found at '^' position.
    [Huawei]undo portswitch
                 ^
    Error: Unrecognized command found at '^' position.
    [Huawei]interface thernet 0/0/0
                      ^
    Error: Wrong parameter found at '^' position.
    

    4、需要先执行如下指令

    [Huawei]interface ethernet 0/0/0
    

    5、设置接口IP

    [Huawei-Ethernet0/0/0]undo portswitch
    [Huawei-Ethernet0/0/0]ip address 192.168.10.2 24
    

    6、查看接口

    [Huawei-Ethernet0/0/0]display interface brief
    PHY: Physical
    *down: administratively down
    (l): loopback
    (s): spoofing
    (b): BFD down
    ^down: standby
    (e): ETHOAM down
    (d): Dampening Suppressed
    InUti/OutUti: input utility/output utility
    Interface                   PHY   Protocol InUti OutUti   inErrors  outErrors
    Ethernet0/0/0               down  down        0%     0%          0          0
    Ethernet0/0/1               down  down        0%     0%          0          0
    Ethernet0/0/2               down  down        0%     0%          0          0
    Ethernet0/0/3               down  down        0%     0%          0          0
    Ethernet0/0/4               down  down        0%     0%          0          0
    Ethernet0/0/5               down  down        0%     0%          0          0
    Ethernet0/0/6               down  down        0%     0%          0          0
    Ethernet0/0/7               down  down        0%     0%          0          0
    Ethernet0/0/8               down  down        0%     0%          0          0
    NULL0                       up    up(s)       0%     0%          0          0
    

    7、查看接口IP

    [Huawei-Ethernet0/0/0]display ip int brief
    *down: administratively down
    ^down: standby
    (l): loopback
    (s): spoofing
    The number of interface that is UP in Physical is 1
    The number of interface that is DOWN in Physical is 2
    The number of interface that is UP in Protocol is 1
    The number of interface that is DOWN in Protocol is 2
    
    Interface                         IP Address/Mask      Physical   Protocol  
    Ethernet0/0/0                     192.168.10.2/24      down       down      
    Ethernet0/0/8                     unassigned           down       down      
    NULL0                             unassigned           up         up(s)     
    [Huawei-Ethernet0/0/0]
    
      Please check whether system data has been changed, and save data in time
    
      Configuration console time out, please press any key to log on
    

    可以看到已经设置成功

  • 相关阅读:
    C# 线程手册 第三章 使用线程 .NET 对同步的支持
    C# 线程手册 第三章 使用线程
    C# 线程手册 第三章 使用线程 .NET 同步策略
    C# 线程手册 第三章 使用线程 AutoResetEvent, Mutex & Interlocked
    ALinq 使用教程(七)ALinq 的扩展
    ALinq 使用教程(三)数据的增、删、改
    免费好用的 NHibernate 可视化实体代码生成器 -- Visual Entity 1.1 支持 NHibernate 了
    ALinq 使用教程(五)使用 Xml 映射文件
    致力于打造最好用的 NHibernate 设计器--Visual Entity 1.4.4发布
    将 Linq to SQl 程序转为 Linq to Access
  • 原文地址:https://www.cnblogs.com/zhaogaojian/p/16410939.html
Copyright © 2020-2023  润新知