欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

华为路由器:入门基础命令

程序员文章站 2024-03-20 22:02:16
...

路由器改名

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysna	
[Huawei]sysname route

IP查看

[route]dis ip routing-table 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 4        Routes : 4        

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

      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

版本查看

[route]display version 
Huawei Versatile Routing Platform Software
VRP (R) software, Version 5.130 (AR1200 V200R003C00)
Copyright (C) 2011-2012 HUAWEI TECH CO., LTD
Huawei AR1220 Router uptime is 0 week, 0 day, 0 hour, 2 minutes
BKP 0 version information: 
1. PCB      Version  : AR01BAK1A VER.NC
2. If Supporting PoE : No
3. Board    Type     : AR1220
4. MPU Slot Quantity : 1
5. LPU Slot Quantity : 2

MPU 0(Master) : uptime is 0 week, 0 day, 0 hour, 2 minutes
MPU version information : 
1. PCB      Version  : AR01SRU1A VER.A
2. MAB      Version  : 0
3. Board    Type     : AR1220
4. BootROM  Version  : 0

接口信息查看

[route]display interface 
Ethernet0/0/0 current state : DOWN
Line protocol current state : DOWN
Description:HUAWEI, AR Series, Ethernet0/0/0 Interface
Switch Port, PVID :    1, TPID : 8100(Hex), The Maximum Frame Length is 1628
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 00e0-fcca-57aa
Last physical up time   : -
Last physical down time : 2020-10-17 16:18:46 UTC-08:00
Current system time: 2020-10-17 16:22:20-08:00
Port Mode: COMMON COPPER
Speed :  100,  Loopback: NONE
Duplex: FULL,  Negotiation: ENABLE
Mdi   : AUTO
Last 300 seconds input rate 0 bits/sec, 0 packets/sec
Last 300 seconds output rate 0 bits/sec, 0 packets/sec
Input peak rate 0 bits/sec,Record time: -
Output peak rate 0 bits/sec,Record time: -

Input:  0 packets, 0 bytes
  Unicast:                  0,  Multicast:                   0
  Broadcast:                0,  Jumbo:                       0
  Discard:                  0,  Total Error:                 0

  CRC:                      0,  Giants:                      0
  Jabbers:                  0,  Throttles:                   0
  ---- More ----

rip协议

[route]rip
[route-rip-1]q

ospf协议

[route]ospf
[route-ospf-1]q

静态路由

[route]ip route-static 

两个路由器相连

一般我们需要添加接口使用的是:2 端口-同异步WAN 接口卡。添加接口卡的时候需要关闭设备
华为路由器:入门基础命令
添加完成之后,需要用串口线Serial相连,连接之后路由器上会多出
s2/0/0s2/0/1两个接口。

相关标签: Network