eNSP实验一(静态)

news2024/9/27 15:33:21

目录

 命名更改

子网划分

配置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

 防环设计:

[R1]ip route-static 192.168.1.32 27 NULL 0

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

 防环:

[R2]ip route-static 192.168.1.64 27 NULL 0

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

防环: 

[R4]ip route-static 192.168.1.128 27 NULL 0

 

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]

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

配置完成

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

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

RuleApp资源社区,知识付费社区,可对接typecho的小程序APP

强大的文章/社区/自媒体客户端&#xff0c;支持打包为安卓&#xff0c;苹果&#xff0c;小程序。包括文章模块&#xff0c;用户模块&#xff0c;支付模块&#xff0c;聊天模块&#xff0c;商城模块等基础功能&#xff0c;包含VIP会员&#xff0c;付费阅读等收费体系&#xff0c…

蓝桥杯第十五届抱佛脚(二)竞赛中的数据结构

蓝桥杯第十五届抱佛脚&#xff08;二&#xff09;内置数据结构 文章目录 蓝桥杯第十五届抱佛脚&#xff08;二&#xff09;内置数据结构在竞赛中常见的数据结构数组(Array)链表(Linked List)栈(Stack)队列(Queue)树(Tree)映射(Map) 内置数据结构的快速使用迭代器&#xff08;It…

stm32知识总结--简单复习各部件

目录 内部结构 部件介绍 配置步骤 之前学了很多部件&#xff0c;配置了很多参数&#xff0c;但是没有很系统地把他们连接在一起&#xff0c;今天这个图里简洁描述了资源与资源之间的关系。 内部结构 部件介绍 黑框部分为CPU、内部有一个内核专门处理事件&#xff0c;所有的…

【Node.js】zlib

gzip 和 deflate 的基本使用 const zlib require("zlib"); const fs require(fs)// 压缩 1. createGzip .gz 2. createDeflate .deflate // const readStream fs.createReadStream(index.txt) // const writeStream fs.createWriteStream(index.txt.gz) // rea…

更换 Jenkins 插件下载源(解决 Jenkins 插件安装失败)【图文详细教程】

Jenkins 插件安装失败的情况 这里提一下&#xff0c;Jenkins 插件安装失败&#xff0c;不一定是下载源的问题&#xff0c;还有可能你下载的 Jenkins 的版本与插件的版本不匹配&#xff0c;Jenkins 的版本较低&#xff0c;而安装的插件是为新的 Jenkins 版本准备的&#xff0c;此…

web CSS笔记1

CSS(Cascading Style Sheets) 美化样式 CSS通常称为CSS样式表或层叠样式表&#xff08;级联样式表&#xff09;&#xff0c;主要用于设置HTML页面中的文本内容&#xff08;字体、大小、对齐方式等&#xff09;、图片的外形&#xff08;宽高、边框样式、边距等&#xff09;以及…

前端学习之用css和html做一个仿淘宝的导航栏

代码 <!DOCTYPE html> <html lang"en"> <head><meta charset"UTF-8"><title>仿淘宝界面案例</title><style>/* 最外层盒子 */.container{width: 270px;height: 385px;border: 1px solid rgb(255, 208, 0);bord…

探秘 RabbitMQ 的设计理念与核心技术要点

目录 一、消息中间件介绍 1.1 消息中间件的作用 二、RabbitMQ 2.1 核心概念 2.2 生产者发送消息过程 2.3 消费者接收消息过程 2.4 RabbitMQ 为何要引入信道(channel) 2.5 消费模式 一、消息中间件介绍 消息队列中间件&#xff08;message queue middleWare, MQ&#xff09;指…

Matlab|【免费】基于数据驱动的模型预测控制电力系统机组组合优化

目录 1 主要内容 2 部分代码 3 程序结果 4 下载链接 1 主要内容 该程序复现文章《Feature-Driven Economic Improvement for Network-Constrained Unit Commitment: A Closed-Loop Predict-and-Optimize Framework》&#xff0c;程序主要做的是一个基于数据驱动的电力系统机…

client-go中ListAndWatch机制,informer源码详解

文章首发地址&#xff1a; 学一下 (suxueit.com)https://suxueit.com/article_detail/s9UMb44BWZdDRfKqFv22 先上一张&#xff0c;不知道是那个大佬画的图 简单描述一下流程 client-go封装部分 以pod为例 、先List所有的Pod资源&#xff0c;然后通过已经获取的pod资源的最大版…

python—接口编写部分

最近准备整理一下之前学过的前端小程序知识笔记&#xff0c;形成合集。顺便准备学一学接口部分&#xff0c;希望自己能成为一个全栈嘿嘿。建议关注收藏&#xff0c;持续更新技术文档。 目录 前端知识技能树http请求浏览器缓存 后端知识技能树python_api&#xff1a;flaskflask…

保研复习概率论2

1.什么是随机变量的数学期望&#xff08;expected value&#xff09;&#xff1f; 如果X是离散型随机变量&#xff0c;其分布列为piP{Xxi}(i1,2...)&#xff0c;若级数绝对收敛&#xff0c;则称随机变量X的数学期望存在&#xff0c;并将的和称为随机变量X的数学期望&#xff0…

大型网站集群管理负载均衡

课程介绍 结合企业大规模应用&#xff0c;解决应用高并发问题&#xff0c;解决单节点故障问题&#xff0c;缓存数据库的应用。学完掌握知识点&#xff1a;企业应用实现四七层负载均衡&#xff0c;以及Nginx等应用的高可用性&#xff0c;Redis缓存数据库的部署应用以及高可用方…

微软开源Garnet高性能缓存服务安装

Garnet介绍 Garnet是一款微软研究院基于C#开发而开源的高性能缓存服务&#xff0c;支持Windows、Linux多平台部署&#xff0c;Garnet兼容Redis服务API&#xff0c;在性能和使用架构上较Redis有很大提升&#xff08;官方说法&#xff09;&#xff0c;并提供与Redis一样的命令操…

pycharm搭建新的解释器及删除处理

目录 1.创建虚拟环境 个人实际操作&#xff1a; 对于“继承全局站点包”&#xff1a; 2.创建一个新项目 3.删除操作 &#xff08;1&#xff09;删除解释器 &#xff08;2&#xff09;删除新建项目 1.创建虚拟环境 Pycharm官方文档说明网址&#xff1a; Configure a virt…

华为数通 HCIP-Datacom H12-831 题库补充

2024年 HCIP-Datacom&#xff08;H12-831&#xff09;最新题库&#xff0c;完整题库请扫描上方二维码&#xff0c;持续更新。 缺省情况下&#xff0c;PIM报文的IP协议号是以下哪一项&#xff1f; A&#xff1a;18 B&#xff1a;59 C&#xff1a;103 D&#xff1a;9 答案&a…

c#矩阵求逆

目录 一、矩阵求逆的数学方法 1、伴随矩阵法 2、初等变换法 3、分块矩阵法 4、定义法 二、矩阵求逆C#代码 1、伴随矩阵法求指定3*3阶数矩阵的逆矩阵 &#xff08;1&#xff09;伴随矩阵数学方法 &#xff08;2&#xff09;代码 &#xff08;3&#xff09;计算 2、对…

【科研基础】VAE: Auto-encoding Variational Bayes

[1]Kingma, Diederik P., and Max Welling. “Auto-encoding variational bayes.” arXiv preprint arXiv:1312.6114 (2013). [2] [论文简析]VAE: Auto-encoding Variational Bayes[1312.6114] [3] The Reparameterization Trick 文章目录 1-什么是VAE1.1-目标1.2-Intractab…

阿里云-零基础入门NLP【基于深度学习的文本分类3-BERT】

文章目录 学习过程赛题理解学习目标赛题数据数据标签评测指标解题思路BERT代码 学习过程 20年当时自身功底是比较零基础(会写些基础的Python[三个科学计算包]数据分析)&#xff0c;一开始看这块其实挺懵的&#xff0c;不会就去问百度或其他人&#xff0c;当时遇见困难挺害怕的…

nodejs+vue高校社团管理小程序的设计与实现python-flask-django-php

相比于以前的传统手工管理方式&#xff0c;智能化的管理方式可以大幅降低学校的运营人员成本&#xff0c;实现了高校社团管理的标准化、制度化、程序化的管理&#xff0c;有效地防止了高校社团管理的随意管理&#xff0c;提高了信息的处理速度和精确度&#xff0c;能够及时、准…