zoukankan      html  css  js  c++  java
  • 华为交换机配置入门(二)

    IP配置入门

    #修改设备名称
    <Huawei>system-view
    [Huawei]
    [Huawei]sysname R1
    [R1]

    #为物理端口配置IP地址
    [R1]interface GigabitEthernet 0/0/0
    [R1-GigabitEthernet0/0/0]ip address 10.1.1.1 24
    [R1-GigabitEthernet0/0/0]undo shutdown

    #查看接口与IP相关摘要信息
    [R1-GigabitEthernet0/0/0]display ip interface brief
    *down: administratively down
    ^down: standby
    (l): loopback
    (s): spoofing
    The number of interface that is UP in Physical is 2
    The number of interface that is DOWN in Physical is 2
    The number of interface that is UP in Protocol is 2
    The number of interface that is DOWN in Protocol is 2

    Interface IP Address/Mask Physical Protocol
    GigabitEthernet0/0/0 10.1.1.1/24 up up
    GigabitEthernet0/0/1 unassigned down down
    GigabitEthernet0/0/2 unassigned down down
    NULL0 unassigned up up(s)

    #查看路由表
    <R1>display ip routing-table
    Route Flags: R - relay, D - download to fib
    ------------------------------------------------------------------------------
    Routing Tables: Public
    Destinations : 7 Routes : 7

    Destination/Mask Proto Pre Cost Flags NextHop Interface

    10.1.1.0/24 Direct 0 0 D 10.1.1.1 GigabitEthernet
    0/0/0
    10.1.1.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
    0/0/0
    10.1.1.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
    0/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
    127.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
    255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0

  • 相关阅读:
    python上下文管理器
    python文件处理
    python爬虫之路(一)-----requests库详解
    深入理解http(四)----http补充
    深入理解http(三)----http进阶hhtps
    深入理解http(二)------http的缓存机制及原理
    深入理解http(一)
    XML学习之路(二)
    Nginx 编译安装-1.61.1
    LVS-DR 模式
  • 原文地址:https://www.cnblogs.com/yokingma/p/11082575.html
Copyright © 2011-2022 走看看