eNSP实验一(静态)

 

目录

 命名更改

子网划分

配置IP

DHCP配置

配置静态路由

NET设置

Telnet及端口映射


 命名更改

<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R1
[R1]

1、R6为ISP,接口IP地址均为公有地址(12.0.0.0/24),该设备只能配置IP地址,之后不能再对其进行任何配置;
2、R1-R5为局域网,私有IP地址192.168.1.0/24,请合理分配;
3、R1、R2、R4,各有两个环回IP地址;R5,R6(1.1.1.0/24)各有一个环回地址;所有路由器上环回均代表连接用户的接口;

子网划分

考虑到路由表尽量小,后续将会使用子网汇总,所以将同一个路由器的两个环回接口划分到一个网段,后续再分。因为骨干链路只需要两个IP,所以主机位有两位即可,骨干链路的网段需要30个网络位,2个主机位。将骨干链路都放在一个网段,同一个路由器的环回都放在一个网段,即一共需要6个网段(网络位为27位)。且骨干链路有6条,需要3个主机位换为网络位,即刚好满足上述骨干链路30个网络位2个主机位的条件。

骨干链路 --- 192.168.1.0000 0000

        R1-R2 --- 192.168.1.0000 0000 --- 192.168.1.0/30

        R2-R4 --- 192.168.1.0000 0100 --- 192.168.1.4/30

        R1-R3 --- 192.168.1.0000 1000 --- 192.168.1.8/30

        R3-R4 --- 192.168.1.0000 1100 --- 192.168.1.12/30

        R4-R5(1000M) --- 192.168.1.0001 0000 --- 192.168.1.16/30

        R4-R5(100M) --- 192.168.1.0001 0100 --- 192.168.1.20/30

R1环回 --- 192.168.1.0010 0000

        L0 --- 192.168.1.0010 0000 --- 192.168.1.32/28

        L1 --- 192.168.1.0011 0000 --- 192.168.1.48/28

R2环回 --- 192.168.1.0100 0000

        L0 --- 192.168.1.0100 0000 --- 192.168.1.64/28

        L1 --- 192.168.1.0101 0000 --- 192.168.1.80/28

R3子网 --- 192.168.1.0110 0000 --- 192.168.1.96/27

R4环回 --- 192.168.1.1000 0000

        L0 --- 192.168.1.1000 0000 --- 192.168.1.128/28

        L1 --- 192.168.1.1001 0000 --- 192.168.1.144/28

R5环回 --- 192.168.1.1010 0000 --- 192.168.1.160/27

192.168.1.1100 0000 --- 闲置

192.168.1.1110 0000 --- 闲置

结果:

配置IP

R1:

The device is running!

<R1>
Mar 18 2024 08:50:27-08:00 R1 %%01IFPDT/4/IF_STATE(l)[0]:Interface GigabitEthern
et0/0/0 has turned into UP state.
<R1>
Mar 18 2024 08:50:27-08:00 R1 %%01IFPDT/4/IF_STATE(l)[1]:Interface GigabitEthern
et0/0/1 has turned into UP state.
<R1>system-view 
Enter system view, return user view with Ctrl+Z.
[R1]interface GigabitEthernet 0/0/0
[R1-GigabitEthernet0/0/0]ip address 192.168.1.1 30
Mar 18 2024 08:51:47-08:00 R1 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R1-GigabitEthernet0/0/0]quit
[R1]interface GigabitEthernet 0/0/1
[R1-GigabitEthernet0/0/1]ip address 192.168.1.9 30
Mar 18 2024 08:52:49-08:00 R1 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R1-GigabitEthernet0/0/1]quit
[R1]interface LoopBack 0	
[R1-LoopBack0]ip address 192.168.1.33 28	
[R1-LoopBack0]quit 
[R1]interface LoopBack 1
[R1-LoopBack1]ip address 192.168.1.49 28
[R1-LoopBack1]quit 
[R1]display ip interface brief 
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 5
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 5
The number of interface that is DOWN in Protocol is 1

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              192.168.1.1/30       up         up        
GigabitEthernet0/0/1              192.168.1.9/30       up         up        
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         192.168.1.33/28      up         up(s)     
LoopBack1                         192.168.1.49/28      up         up(s)     
NULL0                             unassigned           up         up(s)     
[R1]

 R2:

The device is running!

<R2>system-view 
Enter system view, return user view with Ctrl+Z.
[R2]interface GigabitEthernet 0/0/0
[R2-GigabitEthernet0/0/0]ip address 192.168.1.2 30
Mar 18 2024 09:04:27-08:00 R2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R2-GigabitEthernet0/0/0]quit
[R2]interface  GigabitEthernet 0/0/1
[R2-GigabitEthernet0/0/1]ip address 192.168.1.5 30
Mar 18 2024 09:05:05-08:00 R2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R2-GigabitEthernet0/0/1]quit
[R2]interface LoopBack 0
[R2-LoopBack0]ip address 192.168.1.65 28	
[R2-LoopBack0]quit 
[R2]interface LoopBack 1
[R2-LoopBack1]ip address 192.168.1.81 28
[R2-LoopBack1]quit
[R2]display ip interface brief 
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 5
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 5
The number of interface that is DOWN in Protocol is 1

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              192.168.1.2/30       up         up        
GigabitEthernet0/0/1              192.168.1.5/30       up         up        
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         192.168.1.65/28      up         up(s)     
LoopBack1                         192.168.1.81/28      up         up(s)     
NULL0                             unassigned           up         up(s)     
[R2]

 R3:

The device is running!

<R3>sys
Enter system view, return user view with Ctrl+Z.
[R3]int g 0/0/0
[R3-GigabitEthernet0/0/0]ip add 192.168.1.10 30
Mar 18 2024 09:14:32-08:00 R3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R3-GigabitEthernet0/0/0]q
[R3]int g 0/0/1
[R3-GigabitEthernet0/0/1]ip add 192.168.1.13 30
Mar 18 2024 09:14:57-08:00 R3 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R3-GigabitEthernet0/0/1]q
[R3]int g 0/0/2
[R3-GigabitEthernet0/0/2]ip add 192.168.1.97 27
Mar 18 2024 09:48:48-08:00 R3 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state. 
[R3-GigabitEthernet0/0/2]q
[R3]dis ip int b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 4
The number of interface that is DOWN in Physical is 0
The number of interface that is UP in Protocol is 4
The number of interface that is DOWN in Protocol is 0

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              192.168.1.10/30      up         up        
GigabitEthernet0/0/1              192.168.1.13/30      up         up        
GigabitEthernet0/0/2              192.168.1.97/27      up         up        
NULL0                             unassigned           up         up(s)     
[R3]

R4:

The device is running!

<R4>sys
Enter system view, return user view with Ctrl+Z.
[R4]int g 0/0/0
[R4-GigabitEthernet0/0/0]ip add 192.168.1.6 30
[R4-GigabitEthernet0/0/0]
Mar 18 2024 09:17:01-08:00 R4 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R4-GigabitEthernet0/0/0]q
[R4]int g 0/0/1
[R4-GigabitEthernet0/0/1]ip add 192.168.1.14 30
Mar 18 2024 09:17:29-08:00 R4 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R4-GigabitEthernet0/0/1]q
[R4]int l 0
[R4-LoopBack0]ip add 192.168.1.129 28
[R4-LoopBack0]q
[R4]int l 1
[R4-LoopBack1]ip add 192.168.1.145 28
[R4-LoopBack1]q
[R4]int g 0/0/2
[R4-GigabitEthernet0/0/2]ip add 192.168.1.17 30
[R4-GigabitEthernet0/0/2]
Mar 18 2024 09:25:20-08:00 R4 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state. 
[R4-GigabitEthernet0/0/2]q
[R4]int g 4/0/0
[R4-GigabitEthernet4/0/0]ip add 192.168.1.21 30
[R4-GigabitEthernet4/0/0]
Mar 18 2024 09:26:05-08:00 R4 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP 
on the interface GigabitEthernet4/0/0 has entered the UP state. 
[R4-GigabitEthernet4/0/0]q
[R4]dis ip int b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 7
The number of interface that is DOWN in Physical is 0
The number of interface that is UP in Protocol is 7
The number of interface that is DOWN in Protocol is 0

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              192.168.1.6/30       up         up        
GigabitEthernet0/0/1              192.168.1.14/30      up         up        
GigabitEthernet0/0/2              192.168.1.17/30      up         up        
GigabitEthernet4/0/0              192.168.1.21/30      up         up        
LoopBack0                         192.168.1.129/28     up         up(s)     
LoopBack1                         192.168.1.145/28     up         up(s)     
NULL0                             unassigned           up         up(s)     
[R4]

R5:

The device is running!

<R5>sys
Enter system view, return user view with Ctrl+Z.
[R5]int g 0/0/0
[R5-GigabitEthernet0/0/0]ip add 192.168.1.18 30
[R5-GigabitEthernet0/0/0]
Mar 18 2024 09:31:20-08:00 R5 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R5-GigabitEthernet0/0/0]q
[R5]int g 0/0/2
[R5-GigabitEthernet0/0/2]ip add 192.168.1.22 30
Mar 18 2024 09:31:49-08:00 R5 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state. 
[R5-GigabitEthernet0/0/2]q
[R5]int g 0/0/1
[R5-GigabitEthernet0/0/1]ip add 12.0.0.1 24
Mar 18 2024 09:32:29-08:00 R5 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R5-GigabitEthernet0/0/1]q
[R5]int l 0
[R5-LoopBack0]ip add 192.168.1.161 27
[R5-LoopBack0]q
[R5]dis ip int b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 5
The number of interface that is DOWN in Physical is 0
The number of interface that is UP in Protocol is 5
The number of interface that is DOWN in Protocol is 0

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              192.168.1.18/30      up         up        
GigabitEthernet0/0/1              12.0.0.1/24          up         up        
GigabitEthernet0/0/2              192.168.1.22/30      up         up        
LoopBack0                         192.168.1.161/27     up         up(s)     
NULL0                             unassigned           up         up(s)     
[R5]

R6:

The device is running!

<R6>sys
Enter system view, return user view with Ctrl+Z.
[R6]int g 0/0/0
[R6-GigabitEthernet0/0/0]ip add 12.0.0.2 24
[R6-GigabitEthernet0/0/0]
Mar 18 2024 09:35:35-08:00 R6 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R6-GigabitEthernet0/0/0]q
[R6]int l 0
[R6-LoopBack0]ip add 1.1.1.1 24
[R6-LoopBack0]q
[R6]dis ip int b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 2
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 2

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              12.0.0.2/24          up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         1.1.1.1/24           up         up(s)     
NULL0                             unassigned           up         up(s)     
[R6]


4、R3下面的两台PC通过DHCP自动获取IP地址;

DHCP配置

该网段通过R3与外界沟通,故在R3的0/0/2接口上配置DHCP服务:

<R3>sys
Enter system view, return user view with Ctrl+Z.
[R3]dhcp enable 
Info: The operation may take a few seconds. Please wait for a moment.done.
[R3]ip pool a
Info: It's successful to create an IP address pool.	
[R3-ip-pool-a]network 192.168.1.96 mask 27	
[R3-ip-pool-a]gateway-list 192.168.1.97	
[R3-ip-pool-a]dns-list 114.114.114.114
[R3-ip-pool-a]q
[R3]int g 0/0/2
[R3-GigabitEthernet0/0/2]dhcp select global 

将PC的IP获取方式改为HDCP:

查看IP是否获取成功:


5、选路最佳,路由表尽量小,避免环路;

配置静态路由

R1:

<R1>sys
Enter system view, return user view with Ctrl+Z.
[R1]ip route-static 192.168.1.4 30 192.168.1.2
[R1]ip route-static 192.168.1.12 30 192.168.1.10
[R1]ip route-static 192.168.1.96 27 192.168.1.10
[R1]ip route-static 192.168.1.16 30 192.168.1.2
[R1]ip route-static 192.168.1.16 30 192.168.1.10
[R1]ip route-static 192.168.1.20 30 192.168.1.2
[R1]ip route-static 192.168.1.20 30 192.168.1.10
[R1]ip route-static 0.0.0.0 0 192.168.1.2	
[R1]ip route-static 192.168.1.64 27 192.168.1.2
[R1]ip route-static 192.168.1.128 27 192.168.1.2
[R1]ip route-static 192.168.1.128 27 192.168.1.10
[R1]ip route-static 192.168.1.160 27 192.168.1.2
[R1]ip route-static 192.168.1.160 27 192.168.1.10

R2:

<R2>sys
Enter system view, return user view with Ctrl+Z.
[R2]ip route-static 192.168.1.32 27 192.168.1.1
[R2]ip route-static 192.168.1.8 30 192.168.1.1
[R2]ip route-static 192.168.1.96 27 192.168.1.1
[R2]ip route-static 192.168.1.96 27 192.168.1.6
[R2]ip route-static 192.168.1.12 30 192.168.1.6
[R2]ip route-static 0.0.0.0 0 192.168.1.6

R3:

<R3>sys
Enter system view, return user view with Ctrl+Z.
[R3]ip route-static 192.168.1.32 27 192.168.1.9
[R3]ip route-static 192.168.1.0 30 192.168.1.9
[R3]ip route-static 192.168.1.64 27 192.168.1.9
[R3]ip route-static 192.168.1.64 27 192.168.1.14
[R3]ip route-static 192.168.1.4 30 192.168.1.14
[R3]ip route-static 0.0.0.0 0 192.168.1.14

R4:

<R4>sys
Enter system view, return user view with Ctrl+Z.
[R4]ip route-static 192.168.1.32 27 192.168.1.5
[R4]ip route-static 192.168.1.32 27 192.168.1.13
[R4]ip route-static 192.168.1.8 30 192.168.1.13
[R4]ip route-static 192.168.1.96 27 192.168.1.13
[R4]ip route-static 192.168.1.0 30 192.168.1.5
[R4]ip route-static 192.168.1.64 27 192.168.1.5
[R4]ip route-static 192.168.1.160 27 192.168.1.18
[R4]ip route-static 192.168.1.160 27 192.168.1.22
[R4]ip route-static 0.0.0.0 0 192.168.1.18
[R4]ip route-static 0.0.0.0 0 192.168.1.22

R5:

<R5>sys
Enter system view, return user view with Ctrl+Z.
[R5]ip route-static 0.0.0.0 0 192.168.1.17
[R5]ip route-static 0.0.0.0 0 192.168.1.21
[R5]ip route-static 1.1.1.0 24 12.0.0.2

由此内网全通


6、R1-R5均可以访问R6的环回;

NET设置

使用ACL抓取流量:

<R5>sys
Enter system view, return user view with Ctrl+Z.
[R5]acl 2000
[R5-acl-basic-2000]rule permit source 192.168.1.0 0.0.0.255

在R5上配置easy ip:

[R5-acl-basic-2000]q
[R5]int g 0/0/1
[R5-GigabitEthernet0/0/1]nat outbound 2000

完成访问公网:


7、R6 telnet R5的公有地址时,实际登录到R1上;

Telnet及端口映射

R1配置telnet:

<R1>sys
Enter system view, return user view with Ctrl+Z.
[R1]aaa	
[R1-aaa]local-user a1 privilege level 15 password cipher 123456
Info: Add a new user.	
[R1-aaa]local-user a1 service-type telnet
[R1-aaa]user-interface vty 0 4
[R1-ui-vty0-4]authentication-mode aaa

在R5配置端口映射:

<R5>sys
Enter system view, return user view with Ctrl+Z.
[R5]int g 0/0/1
[R5-GigabitEthernet0/0/1]nat server protocol tcp global current-interface 23 ins
ide 192.168.1.1 23
Warning:The port 23 is well-known port. If you continue it may cause function fa
ilure.
Are you sure to continue?[Y/N]:y

尝试访问:


8、R4与R5正常通过1000M链路,故障时通过100m链路; 

16/30网段为1000M,20/30网段为100M。

使用静态路由设置优先级:

R4:

因为静态路由默认优先级为60,所以只需要把100M的优先级调大即可:

[R4]ip route-static 0.0.0.0 0 192.168.1.22 preference 61
Info: Succeeded in modifying route.
Mar 22 2024 08:44:17-08:00 R4 %%01RM/4/IPV4_DEFT_RT_CHG(l)[0]:IPV4 default Route
 is changed. (ChangeType=Delete, InstanceId=0, Protocol=Static, ExitIf=GigabitEt
hernet4/0/0, Nexthop=192.168.1.22, Neighbour=0.0.0.0, Preference=1023410176, Lab
el=NULL, Metric=0) 
[R4]dis ip routing-table 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 29       Routes : 31       

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        0.0.0.0/0   Static  60   0          RD   192.168.1.18    GigabitEthernet
0/0/2
      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
    192.168.1.0/30  Static  60   0          RD   192.168.1.5     GigabitEthernet
0/0/0
    192.168.1.4/30  Direct  0    0           D   192.168.1.6     GigabitEthernet
0/0/0
    192.168.1.6/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
    192.168.1.7/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
    192.168.1.8/30  Static  60   0          RD   192.168.1.13    GigabitEthernet
0/0/1
   192.168.1.12/30  Direct  0    0           D   192.168.1.14    GigabitEthernet
0/0/1
   192.168.1.14/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/1
   192.168.1.15/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/1
   192.168.1.16/30  Direct  0    0           D   192.168.1.17    GigabitEthernet
0/0/2
   192.168.1.17/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/2
   192.168.1.19/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/2
   192.168.1.20/30  Direct  0    0           D   192.168.1.21    GigabitEthernet
4/0/0
   192.168.1.21/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
4/0/0
   192.168.1.23/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
4/0/0
   192.168.1.32/27  Static  60   0          RD   192.168.1.5     GigabitEthernet
0/0/0
                    Static  60   0          RD   192.168.1.13    GigabitEthernet
0/0/1
   192.168.1.64/27  Static  60   0          RD   192.168.1.5     GigabitEthernet
0/0/0
   192.168.1.96/27  Static  60   0          RD   192.168.1.13    GigabitEthernet
0/0/1
  192.168.1.128/28  Direct  0    0           D   192.168.1.129   LoopBack0
  192.168.1.129/32  Direct  0    0           D   127.0.0.1       LoopBack0
  192.168.1.143/32  Direct  0    0           D   127.0.0.1       LoopBack0
  192.168.1.144/28  Direct  0    0           D   192.168.1.145   LoopBack1
  192.168.1.145/32  Direct  0    0           D   127.0.0.1       LoopBack1
  192.168.1.159/32  Direct  0    0           D   127.0.0.1       LoopBack1
  192.168.1.160/27  Static  60   0          RD   192.168.1.18    GigabitEthernet
0/0/2
                    Static  60   0          RD   192.168.1.22    GigabitEthernet
4/0/0
255.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0

[R4]

R5:

与上面同理:

<R5>sys
Enter system view, return user view with Ctrl+Z.
[R5]dis ip rou	
[R5]dis ip routing-table 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 18       Routes : 19       

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        0.0.0.0/0   Static  60   0          RD   192.168.1.17    GigabitEthernet
0/0/0
                    Static  60   0          RD   192.168.1.21    GigabitEthernet
0/0/2
        1.1.1.0/24  Static  60   0          RD   12.0.0.2        GigabitEthernet
0/0/1
       12.0.0.0/24  Direct  0    0           D   12.0.0.1        GigabitEthernet
0/0/1
       12.0.0.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/1
     12.0.0.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/1
      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
   192.168.1.16/30  Direct  0    0           D   192.168.1.18    GigabitEthernet
0/0/0
   192.168.1.18/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
   192.168.1.19/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
   192.168.1.20/30  Direct  0    0           D   192.168.1.22    GigabitEthernet
0/0/2
   192.168.1.22/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/2
   192.168.1.23/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/2
  192.168.1.160/27  Direct  0    0           D   192.168.1.161   LoopBack0
  192.168.1.161/32  Direct  0    0           D   127.0.0.1       LoopBack0
  192.168.1.191/32  Direct  0    0           D   127.0.0.1       LoopBack0
255.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0

[R5]ip route-static 0.0.0.0 0 192.168.1.21 preference 61
Info: Succeeded in modifying route.
Mar 22 2024 08:49:44-08:00 R5 %%01RM/4/IPV4_DEFT_RT_CHG(l)[0]:IPV4 default Route
 is changed. (ChangeType=Delete, InstanceId=0, Protocol=Static, ExitIf=GigabitEt
hernet0/0/2, Nexthop=192.168.1.21, Neighbour=0.0.0.0, Preference=1023410176, Lab
el=NULL, Metric=0) 
[R5]
[R5]dis ip routing-table 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 18       Routes : 18       

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        0.0.0.0/0   Static  60   0          RD   192.168.1.17    GigabitEthernet
0/0/0
        1.1.1.0/24  Static  60   0          RD   12.0.0.2        GigabitEthernet
0/0/1
       12.0.0.0/24  Direct  0    0           D   12.0.0.1        GigabitEthernet
0/0/1
       12.0.0.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/1
     12.0.0.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/1
      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
   192.168.1.16/30  Direct  0    0           D   192.168.1.18    GigabitEthernet
0/0/0
   192.168.1.18/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
   192.168.1.19/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
   192.168.1.20/30  Direct  0    0           D   192.168.1.22    GigabitEthernet
0/0/2
   192.168.1.22/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/2
   192.168.1.23/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/2
  192.168.1.160/27  Direct  0    0           D   192.168.1.161   LoopBack0
  192.168.1.161/32  Direct  0    0           D   127.0.0.1       LoopBack0
  192.168.1.191/32  Direct  0    0           D   127.0.0.1       LoopBack0
255.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0

[R5]

优先级低的条目将暂时不会显示在路由条目上。

配置完成

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:/a/477531.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

运动想象 (MI) 迁移学习系列 (14) : EEGNet-Fine tuning

运动想象迁移学习系列:EEGNet-Fine tuning 0. 引言1. 主要贡献2. 提出的方法2.1 EEGNet框架2.2 微调 3. 实验结果3.1 各模型整体分类结果3.2 算法复杂度比较3.3 不同微调方法比较 4. 总结欢迎来稿 论文地址&#xff1a;https://www.nature.com/articles/s41598-021-99114-1#cit…

CAD建筑版2024 安装教程

CAD建筑版是一种专门用于建筑设计和绘图的CAD软件版本。它提供了专业的建筑设计工具和功能&#xff0c;帮助建筑师、设计师和工程师在建筑领域进行快速、准确和高效的设计工作。 CAD建筑版具备建筑相关的库和元素&#xff0c;用户可以方便地使用预定义的建筑符号和元素进行建筑…

大气污染扩散模型Calpuff技术应用

目前&#xff0c;大气污染仍为我国亟待解决的环境问题。为了弄清大气污染物排放后对周围环境的影响&#xff0c;需要了解污染物的扩散规律。Calpuff模型是一种三维非稳态拉格朗日扩散模型&#xff0c;可有效地处理非稳态&#xff08;如&#xff0c;熏烟、环流、地形和海岸等&am…

谷歌Gemma大模型部署记录

谷歌Gemma大模型部署记录 配置信息 1.系统&#xff1a;Ubuntu20 2.显卡&#xff1a;RTX3060 6G 一、安装Ollama 官网地址&#xff1a;https://ollama.com/download/linux 按照指令安装 curl -fsSL https://ollama.com/install.sh | sh二、运行模型 输入指令&#xff1a;…

关于订单到期关闭的实现方案

前言 在电商、支付等系统中&#xff0c;一般都是先创建订单(支付单)&#xff0c;再给用户一定的时间进行支付&#xff0c;如果没有按时支付的话&#xff0c;就需要把之前的订单(支付单)取消掉。这种类似的场景有很多&#xff0c;还有比如到期自动收货、超时自动退款、下单后自…

Linux-网络层IP协议、链路层以太网协议解析

目录 网络层&#xff1a;IP协议地址管理路由选择 链路层 网络层&#xff1a; 网络层&#xff1a;负责地址管理与路由选择 — IP协议&#xff0c;地址管理&#xff0c;路由选择 IP协议 数据格式&#xff1a; 4位协议版本&#xff1a;4-ipv4协议版本 4位首部长度&#xff1a;以…

【网站项目】293学生用品采购系统

&#x1f64a;作者简介&#xff1a;拥有多年开发工作经验&#xff0c;分享技术代码帮助学生学习&#xff0c;独立完成自己的项目或者毕业设计。 代码可以私聊博主获取。&#x1f339;赠送计算机毕业设计600个选题excel文件&#xff0c;帮助大学选题。赠送开题报告模板&#xff…

Dockerfile自定义镜像

文章目录 1、镜像结构2、Dockerfile语法3、构建Java项目3.1、基于Ubuntu构建Java项目3.2、基于java8构建Java项目 4、小结 ​&#x1f343;作者介绍&#xff1a;双非本科大三网络工程专业在读&#xff0c;阿里云专家博主&#xff0c;专注于Java领域学习&#xff0c;擅长web应用…

【网站项目】291校园疫情防控系统

&#x1f64a;作者简介&#xff1a;拥有多年开发工作经验&#xff0c;分享技术代码帮助学生学习&#xff0c;独立完成自己的项目或者毕业设计。 代码可以私聊博主获取。&#x1f339;赠送计算机毕业设计600个选题excel文件&#xff0c;帮助大学选题。赠送开题报告模板&#xff…

Linux系统——Mysql索引补充知识

目录 一、索引介绍 1.索引的优点 2.索引的分类 3.索引的技术名词 3.1回表 3.2覆盖索引 3.3最左匹配 3.4索引下推 4.索引匹配方式 4.1全值匹配 4.2最左前缀匹配 4.3匹配列前缀 4.4匹配一个范围值 4.5精确匹配某一列并范围匹配另一列 4.6只访问索引的查询 一、索引…

(ROOT)KAFKA详解

生产篇 使用 /** Licensed to the Apache Software Foundation (ASF) under one or more* contributor license agreements. See the NOTICE file distributed with* this work for additional information regarding copyright ownership.* The ASF licenses this file to Y…

python机器学习,这些面试题你会吗

安装 要安装完整的栈或单个包&#xff0c;您可以参考 这里 给出的说明。 注意&#xff1a; Anaconda 是高推荐的&#xff0c; 因为它可以无缝地安装和维护数据科学包。 scikit-learn Scikit是一个用于Python的免费开源机器学习库。 它提供了现成的功能来实现诸如线性回归、 …

JavaScript中的类

instanceof 运算符用于检测构造函数的 prototype 属性是否出现在某个实例对象的原型链上。 1、类的声明 1.1 基本的类声明语法 要声明一个类,首先编写class关键字,紧跟着的是类的名字。 class Person {constructor(name) {this.name = name;}sayName() {console.log(this…

@Autowired和@Resource两个注解的异同点

前言 在之前分别写了关于Autowired和Resource注解的两篇博文,这里我们总结一下两个注解的异同点 相同点 两个注解的作用都是完成Spring的依赖注入两个注解都是在各自bpp的postProcessMergedBeanDefinition方法中发现注入点,都是在各自bpp的postProcessProperties方法中完成依…

关于安卓MPAnroidChart开发(一)直方图分组坑

背景 安卓开发一个图表显示数据&#xff0c;内容就是对直方图进行分组显示&#xff0c;大概示例如下&#xff1a; 开发环境 win10,as4,jdk8 开发 这里直接说重点。乱七八糟的就掠过了&#xff0c;最后会放出所有相关源码以及封装好的类。 如果对单组的直方图&#xff0c…

手机抓包也太简单好玩了吧!

我们选择Charles来作为抓包工具&#xff0c;本文将从0到1讲解从电脑端抓包到手机端抓包。 Charles是一款被广泛使用的网络抓包工具&#xff0c;它可以用来监控和调试通过HTTP和HTTPS协议发送和接收的所有网络请求和响应。Charles通常用于网页和网络应用的开发过程中&#xff0…

代码随想录 Day-23

力扣题目 406.根据身高重建队列 思路 这里可以看出来是有两个维度考虑&#xff0c;和力扣题目 135.分发糖果&#xff08;可以看我day-22的文章&#xff09; 有点类似。 因此遇到这种两个维度权衡的时候&#xff0c;一定是先考虑一个维度再按照另一个维度来重新考虑排序。 两…

YOLOv9有效改进|使用iRMB与RepNCSPELAN4融合

专栏介绍&#xff1a;YOLOv9改进系列 | 包含深度学习最新创新&#xff0c;助力高效涨点&#xff01;&#xff01;&#xff01; 一、改进点介绍 iRMB是CVPR2023即插即用的到残差注意力机制。 本文使用iRMB与RepNCSPELAN4进行融合 二、iRMB-RepNCSPELAN4模块详解 2.1 模块简介 这…

Codeforces Round 935 (Div. 3)A~E

A. Setting up Camp 题目分析: 有三种人&#xff0c;内向、外向、综合&#xff0c;内向必须独自一个帐篷&#xff0c;外向必须3个人一个帐篷&#xff0c;综合介于1~3人一个帐篷&#xff0c;我们发现非法情况只会存在外向的人凑不成3个人一个帐篷的情况&#xff0c;因外向不够可…

AI视频激光综合驱鸟装置:全自动、大范围驱鸟 | 真驱鸟科技

在电力系统中&#xff0c;鸟害事故已成为一个不容忽视的问题&#xff0c;直接威胁到电网的正常运行。但鸟类拥有极强的环境适应能力&#xff0c;它们能够在各种环境中生存和繁衍。这种强大的适应性使得传统的单一功能驱鸟器&#xff0c;在面对鸟类时显得力不从心&#xff0c;无…