eNSP默认路由+浮动路由

在这里插入图片描述

R4:

<Huawei>un t m
Info: Current terminal monitor is off.
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]user-interface con 0
[Huawei-ui-console0]idle-timeout 0 0
[Huawei-ui-console0]qu
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 10.1.1.1 24
[Huawei-GigabitEthernet0/0/0]q
[Huawei]int LoopBack 0
[Huawei-LoopBack0]ip address 1.1.1.1 32
[Huawei-LoopBack0]q
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]un shut
Info: Interface GigabitEthernet0/0/0 is not shutdown.
[Huawei-GigabitEthernet0/0/0]qu
[Huawei]ip route-static 0.0.0.0 0.0.0.0 10.1.1.2
[Huawei]int e0/0/0
[Huawei-Ethernet0/0/0]ip address 10.1.3.1 24
[Huawei-Ethernet0/0/0]un shut
Info: Interface Ethernet0/0/0 is not shutdown.
[Huawei-Ethernet0/0/0]qu
[Huawei]ip route-static 0.0.0.0 0.0.0.0 10.1.3.2 preference 61
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]shut	
[Huawei-GigabitEthernet0/0/0]qu
[Huawei]disp ip routing-table 

Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 8        Routes : 8        

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        0.0.0.0/0   Static  60   0          RD   10.1.1.2        GigabitEthernet
0/0/0
        1.1.1.1/32  Direct  0    0           D   127.0.0.1       LoopBack0
       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.3.0/24  Direct  0    0           D   10.1.3.1        Ethernet0/0/0
       10.1.3.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

[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]shutdown 
[Huawei-GigabitEthernet0/0/0]qu
[Huawei]disp ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 6        Routes : 6        

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        0.0.0.0/0   Static  61   0          RD   10.1.3.2        Ethernet0/0/0
        1.1.1.1/32  Direct  0    0           D   127.0.0.1       LoopBack0
       10.1.3.0/24  Direct  0    0           D   10.1.3.1        Ethernet0/0/0
       10.1.3.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

[Huawei]
[Huawei]ping -a 1.1.1.1 3.3.3.3
  PING 3.3.3.3: 56  data bytes, press CTRL_C to break
    Reply from 3.3.3.3: bytes=56 Sequence=1 ttl=254 time=100 ms
    Reply from 3.3.3.3: bytes=56 Sequence=2 ttl=254 time=60 ms
    Reply from 3.3.3.3: bytes=56 Sequence=3 ttl=254 time=60 ms
    Reply from 3.3.3.3: bytes=56 Sequence=4 ttl=254 time=80 ms
    Reply from 3.3.3.3: bytes=56 Sequence=5 ttl=254 time=60 ms

  --- 3.3.3.3 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 60/72/100 ms

[Huawei]

R5:

<Huawei>
Error: Unrecognized command found at '^' position.
<Huawei>un t m
Info: Current terminal monitor is off.
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]user-interface con 0
[Huawei-ui-console0]idle-timeout 0 0
[Huawei-ui-console0]q
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 10.1.1.2 24
[Huawei-GigabitEthernet0/0/0]undo shut
Info: Interface GigabitEthernet0/0/0 is not shutdown.
[Huawei-GigabitEthernet0/0/0]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip address 10.1.2.2 24
[Huawei-GigabitEthernet0/0/1]undo shut
Info: Interface GigabitEthernet0/0/1 is not shutdown.
[Huawei-GigabitEthernet0/0/1]q
[Huawei]ip route-static 1.1.1.1 32 10.1.1.1
[Huawei]ip route-static 3.3.3.3 32 10.1.2.1
[Huawei]int e0/0/0
[Huawei-Ethernet0/0/0]ip address 10.1.3.2 24
[Huawei-Ethernet0/0/0]un shut
Info: Interface Ethernet0/0/0 is not shutdown.
[Huawei-Ethernet0/0/0]qu
[Huawei]ip route-static 1.1.1.1 32 10.1.3.1 preference 61
[Huawei]disp ip routing-table 

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

Routing Tables: Public
         Destinations : 8        Routes : 8        

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        1.1.1.1/32  Static  61   0          RD   10.1.3.1        Ethernet0/0/0
        3.3.3.3/32  Static  60   0          RD   10.1.2.1        GigabitEthernet

0/0/1
       10.1.2.0/24  Direct  0    0           D   10.1.2.2        GigabitEthernet
0/0/1
       10.1.2.2/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/1
       10.1.3.0/24  Direct  0    0           D   10.1.3.2        Ethernet0/0/0
       10.1.3.2/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

[Huawei]

R6:

<Huawei>un t m
Info: Current terminal monitor is off.
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]user-interface con 0
[Huawei-ui-console0]idle-timeout 0 0
[Huawei-ui-console0]qu
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip address 10.1.2.1 24
[Huawei-GigabitEthernet0/0/1]q
[Huawei]int LoopBack 0
[Huawei-LoopBack0]ip address 3.3.3.3 32
[Huawei-LoopBack0]q
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]un shut
Info: Interface GigabitEthernet0/0/1 is not shutdown.
[Huawei-GigabitEthernet0/0/1]qu
[Huawei]ip route-static 0.0.0.0 0.0.0.0 10.1.2.2
[Huawei]

猜你喜欢

转载自blog.csdn.net/July_jojo/article/details/107642989