1.26第三次作业静态综合

实验:静态综合

  • 第一二小题
  • 第三四小题(第三题不能直达做缺省;第四题写路由汇总,空接口)
  • 第五小题(设置优先级)

在这里插入图片描述

第一二小题

划分网段

对于这个网段:
192.168.1.0 /24 — 首先分为骨干链路和非骨干链路(向后借1位)
192.168.1. 0 /25
192.168.1.128 /25
—— 然后细分骨干链路(直接借到30位)192.168.1. 0 00000 00
192.168.1.1 00000 00
—— 骨干链路 192.168.1. 0 /25
192.168.1.0 /30
192.168.1.4/30 0 00001 00 4
192.168.1.8/30 0 00010 00 8
192.168.1.12/30 0 00011 00 12
192.168.1.16/30 0 00100 00 16
192.168.1.20/30 0 00101 00 20
—— 然后细分环回链路(往后借2位,分成四个大网段,四个大网段再往后借1位,每个大网段细分两个小网段)
-------------环回链路 192.168.1.128 /25
-------------第一个大网段 192.168.1.128 00 00000 192.168.1.128/27
R1环回 192.168.1.128/28
192.168.1.144/28
—— 第二个大网段192.168.1.128 01 00000
192.168.1.160/27
R2环回 192.168.1.160/28
192.168.1.176/28
—— 第三个大网段192.168.1.128 10 00000
192.168.1.192/27
Router1环回 192.168.1.192/28
192.168.1.208/28
—— 第四个大网段192.168.1.128 11 00000
192.168.1.224/27
R3环回 192.168.1.224/28
192.168.1.240/28

接口配置

给R1进行接口配置

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R1
[R1]interface g 0/0/0
[R1-GigabitEthernet0/0/0]ip address 192.168.1.1 30
 
[R1-GigabitEthernet0/0/0]interface g 0/0/1
[R1-GigabitEthernet0/0/1]ip address 192.168.1.13 30
 
[R1-GigabitEthernet0/0/1]q
[R1]interface LoopBack 0
[R1-LoopBack0]ip address 192.168.1.129 28
 
[R1-LoopBack0]interface LoopBack 1
[R1-LoopBack1]ip address 192.168.1.145 28
 
[R1-LoopBack1]q
[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.13/30      up         up        
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         192.168.1.129/28     up         up(s)     
LoopBack1                         192.168.1.145/28     up         up(s)     
NULL0                             unassigned           up         up(s)    

给R2进行接口配置

<Huawei>sysEnter system view, return user view with Ctrl+Z.[Huawei]sysname R2[R2]interface g 0/0/0[R2-GigabitEthernet0/0/0]ip address 192.168.1.2 30 [R2-GigabitEthernet0/0/0]interface g 0/0/1[R2-GigabitEthernet0/0/1]ip address 192.168.1.5 30	 [R2-GigabitEthernet0/0/1]interface Loopback 0[R2-LoopBack0]ip address 192.168.1.161 28 [R2-LoopBack0]interface Loopback 1[R2-LoopBack1]ip address 192.168.1.177 28 [R2-LoopBack1]q[R2]display ip interface brief *down: administratively down^down: standby(l): loopback(s): spoofingThe number of interface that is UP in Physical is 5The number of interface that is DOWN in Physical is 1The number of interface that is UP in Protocol is 5The 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.161/28     up         up(s)     LoopBack1                         192.168.1.177/28     up         up(s)     NULL0                             unassigned           up         up(s)     

给Router1进行接口配置

<Huawei>sysEnter system view, return user view with Ctrl+Z.[r1]interface e 0/0/0[r1-Ethernet0/0/0]ip address 192.168.1.6 30 [r1-Ethernet0/0/0]interface g 0/0/0[r1-GigabitEthernet0/0/0]ip address 192.168.1.17 30 [r1-GigabitEthernet0/0/0]interface g 0/0/1[r1-GigabitEthernet0/0/1]ip address 192.168.1.21 30 [r1-GigabitEthernet0/0/1]interface e 0/0/1[r1-Ethernet0/0/1]ip address 192.168.1.10 30      [r1]interface LoopBack 0[r1-LoopBack0]ip address 192.168.1.193 28 [r1]interface LoopBack 1[r1-LoopBack1]ip address 192.168.1.209 28 [r1-LoopBack1]display ip interface brief*down: administratively down!down: FIB overload down^down: standby(l): loopback(s): spoofing(d): Dampening SuppressedThe number of interface that is UP in Physical is 7The number of interface that is DOWN in Physical is 6The number of interface that is UP in Protocol is 7The number of interface that is DOWN in Protocol is 6 Interface                         IP Address/Mask      Physical   Protocol  Ethernet0/0/0                     192.168.1.6/30       up         up        Ethernet0/0/1                     192.168.1.10/30      up         up        GigabitEthernet0/0/0              192.168.1.17/30      up         up        GigabitEthernet0/0/1              192.168.1.21/30      up         up        GigabitEthernet0/0/2              unassigned           down       down      GigabitEthernet0/0/3              unassigned           down       down      LoopBack0                         192.168.1.193/28     up         up(s)     LoopBack1                         192.168.1.209/28     up         up(s)     NULL0                             unassigned           up         up(s)     Serial0/0/0                       unassigned           down       down      Serial0/0/1                       unassigned           down       down      Serial0/0/2                       unassigned           down       down      Serial0/0/3                       unassigned           down       down      

给R3进行接口配置

<Huawei>sysEnter system view, return user view with Ctrl+Z.[Huawei]s	[Huawei]sysname R3[R3]interface g 0/0/0[R3-GigabitEthernet0/0/0]ip address 192.168.1.14 30 [R3-GigabitEthernet0/0/0]interface g 0/0/1[R3-GigabitEthernet0/0/1]ip address 192.168.1.9 30[R3-GigabitEthernet0/0/1]q [R3]interface LoopBack 0[R3-LoopBack0]ip address 192.168.1.225 28 [R3-LoopBack0]interface LoopBack 1[R3-LoopBack1]ip address 192.168.1.241 28[R3-LoopBack1]q [R3]display ip interface brief *down: administratively down^down: standby(l): loopback(s): spoofingThe number of interface that is UP in Physical is 5The number of interface that is DOWN in Physical is 1The number of interface that is UP in Protocol is 5The number of interface that is DOWN in Protocol is 1 Interface                         IP Address/Mask      Physical   Protocol  GigabitEthernet0/0/0              192.168.1.14/30      up         up        GigabitEthernet0/0/1              192.168.1.9/30       up         up        GigabitEthernet0/0/2              unassigned           down       down      LoopBack0                         192.168.1.225/28     up         up(s)     LoopBack1                         192.168.1.241/28     up         up(s)     NULL0                             unassigned           up         up(s)     

给R5进行接口配置

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R5
[R5]interface g 0/0/0
[R5-GigabitEthernet0/0/0]ip address 192.168.1.18 30
 
[R5-GigabitEthernet0/0/0]interface g 0/0/1
[R5-GigabitEthernet0/0/1]ip address 192.168.1.22 30
[R5-GigabitEthernet0/0/1]q
	
[R5]interface LoopBack 0
[R5-LoopBack0]ip address 5.5.5.1 24
 
[R5]display ip interface brief 
*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 1
The number of interface that is UP in Protocol is 4
The number of interface that is DOWN in Protocol is 1
 
Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              192.168.1.18/30      up         up        
GigabitEthernet0/0/1              192.168.1.22/30      up         up        
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         5.5.5.1/24           up         up(s)     
NULL0                             unassigned           up         up(s)     
[R5]

第三四小题(第三题不能直达做缺省;第四题写路由汇总,空接口)

配置静态路由

给R1配置静态路由

[R1]ip route-static 192.168.1.4 30 192.168.1.2 [R1]ip route-static 192.168.1.160 28 192.168.1.2[R1][R1]ip route-static 192.168.1.176 28 192.168.1.2 [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.14 [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.14 [R1]ip route-static 192.168.1.192 28 192.168.1.2 [R1]ip route-static 192.168.1.208 28 192.168.1.2 [R1]ip route-static 192.168.1.192 28 192.168.1.14 [R1]ip route-static 192.168.1.208 28 192.168.1.14 [R1]ip route-static 192.168.1.8 30 192.168.1.14 [R1]ip route-static 192.168.1.224 28 192.168.1.14 [R1]ip route-static 192.168.1.240 28 192.168.1.14 [R1]display this [V200R003C00]# sysname R1# snmp-agent local-engineid 800007DB03000000000000 snmp-agent # clock timezone China-Standard-Time minus 08:00:00#portal local-server load portalpage.zip# drop illegal-mac alarm# set cpu-usage threshold 80 restore 75#ip route-static 192.168.1.4 255.255.255.252 192.168.1.2ip route-static 192.168.1.8 255.255.255.252 192.168.1.14ip route-static 192.168.1.16 255.255.255.252 192.168.1.2ip route-static 192.168.1.16 255.255.255.252 192.168.1.14ip route-static 192.168.1.20 255.255.255.252 192.168.1.2ip route-static 192.168.1.20 255.255.255.252 192.168.1.14ip route-static 192.168.1.160 255.255.255.240 192.168.1.2ip route-static 192.168.1.176 255.255.255.240 192.168.1.2ip route-static 192.168.1.192 255.255.255.240 192.168.1.2ip route-static 192.168.1.192 255.255.255.240 192.168.1.14ip route-static 192.168.1.208 255.255.255.240 192.168.1.2ip route-static 192.168.1.208 255.255.255.240 192.168.1.14ip route-static 192.168.1.224 255.255.255.240 192.168.1.14ip route-static 192.168.1.240 255.255.255.240 192.168.1.14#return

给R2配置静态路由

<R2>sysEnter system view, return user view with Ctrl+Z.[R2]ip route-static 192.168.1.128 28 192.168.1.1 [R2]ip route-static 192.168.1.144 28 192.168.1.1 [R2]ip route-static 192.168.1.12 30 192.168.1.1 [R2]ip route-static 192.168.1.224 28 192.168.1.6 [R2]ip route-static 192.168.1.240 28 192.168.1.6 [R2]ip route-static 192.168.1.224 28 192.168.1.1 [R2]ip route-static 192.168.1.240 28 192.168.1.1 [R2]ip route-static 192.168.1.8 30 192.168.1.6   [R2]ip route-static 192.168.1.192 28 192.168.1.6  [R2]ip route-static 192.168.1.208 28 192.168.1.6 [R2]ip route-static 192.168.1.16 30 192.168.1.6   [R2]ip route-static 192.168.1.20 30 192.168.1.6  [R2]display this[V200R003C00]# sysname R2# snmp-agent local-engineid 800007DB03000000000000 snmp-agent # clock timezone China-Standard-Time minus 08:00:00#portal local-server load portalpage.zip# drop illegal-mac alarm# set cpu-usage threshold 80 restore 75#ip route-static 192.168.1.8 255.255.255.252 192.168.1.6ip route-static 192.168.1.12 255.255.255.252 192.168.1.1ip route-static 192.168.1.16 255.255.255.252 192.168.1.6ip route-static 192.168.1.20 255.255.255.252 192.168.1.6ip route-static 192.168.1.128 255.255.255.240 192.168.1.1ip route-static 192.168.1.144 255.255.255.240 192.168.1.1ip route-static 192.168.1.192 255.255.255.240 192.168.1.6ip route-static 192.168.1.208 255.255.255.240 192.168.1.6ip route-static 192.168.1.224 255.255.255.240 192.168.1.6ip route-static 192.168.1.224 255.255.255.240 192.168.1.1ip route-static 192.168.1.240 255.255.255.240 192.168.1.6ip route-static 192.168.1.240 255.255.255.240 192.168.1.1#return

给Router1做静态配置

<r1>sysEnter system view, return user view with Ctrl+Z.[r1]ip route-static 192.168.1.160 28 192.168.1.5[r1]ip route-static 192.168.1.176 28 192.168.1.5 [r1]ip route-static 192.168.1.0 30 192.168.1.5 [r1]ip route-static 192.168.1.128 28 192.168.1.5[r1]ip route-static 192.168.1.144 28 192.168.1.5[r1]ip route-static 192.168.1.128 28 192.168.1.9[r1]ip route-static 192.168.1.144 28 192.168.1.9[r1][r1]ip route-static 192.168.1.12 30 192.168.1.9 [r1]ip route-static 192.168.1.224 28 192.168.1.9[r1]ip route-static 192.168.1.240 28 192.168.1.9 [r1]display this #sysname r1#ip route-static 192.168.1.0 255.255.255.252 192.168.1.5ip route-static 192.168.1.12 255.255.255.252 192.168.1.9ip route-static 192.168.1.128 255.255.255.240 192.168.1.5ip route-static 192.168.1.128 255.255.255.240 192.168.1.9ip route-static 192.168.1.144 255.255.255.240 192.168.1.5ip route-static 192.168.1.144 255.255.255.240 192.168.1.9ip route-static 192.168.1.160 255.255.255.240 192.168.1.5ip route-static 192.168.1.176 255.255.255.240 192.168.1.5ip route-static 192.168.1.224 255.255.255.240 192.168.1.9ip route-static 192.168.1.240 255.255.255.240 192.168.1.9#return

给R3配置静态设置

<R3>sysEnter system view, return user view with Ctrl+Z.[R3]ip route-static 192.168.1.128 28 192.168.1.13 [R3]ip route-static 192.168.1.144 28 192.168.1.13 [R3]ip route-static 192.168.1.0 30 192.168.1.13 [R3]ip route-static 192.168.1.160 28 192.168.1.13[R3]ip route-static 192.168.1.176 28 192.168.1.13[R3]ip route-static 192.168.1.160 28 192.168.1.10  [R3]ip route-static 192.168.1.176 28 192.168.1.10   [R3]ip route-static 192.168.1.4 30 192.168.1.10   [R3]ip route-static 192.168.1.16 30 192.168.1.10  [R3]ip route-static 192.168.1.20 30 192.168.1.10  [R3]ip route-static 192.168.1.192 28 192.168.1.10[R3]ip route-static 192.168.1.208 28 192.168.1.10 [R3]display this[V200R003C00]# sysname R3# snmp-agent local-engineid 800007DB03000000000000 snmp-agent # clock timezone China-Standard-Time minus 08:00:00#portal local-server load portalpage.zip# drop illegal-mac alarm# set cpu-usage threshold 80 restore 75#ip route-static 192.168.1.0 255.255.255.252 192.168.1.13ip route-static 192.168.1.4 255.255.255.252 192.168.1.10ip route-static 192.168.1.16 255.255.255.252 192.168.1.10ip route-static 192.168.1.20 255.255.255.252 192.168.1.10ip route-static 192.168.1.128 255.255.255.240 192.168.1.13ip route-static 192.168.1.144 255.255.255.240 192.168.1.13ip route-static 192.168.1.160 255.255.255.240 192.168.1.13ip route-static 192.168.1.160 255.255.255.240 192.168.1.10ip route-static 192.168.1.176 255.255.255.240 192.168.1.13ip route-static 192.168.1.176 255.255.255.240 192.168.1.10ip route-static 192.168.1.192 255.255.255.240 192.168.1.10ip route-static 192.168.1.208 255.255.255.240 192.168.1.10#return

给R5配置静态

<R5>sysEnter system view, return user view with Ctrl+Z.[R5]ip route-static 192.168.1.0 30 192.168.1.17 [R5]ip route-static 192.168.1.128 28 192.168.1.17 [R5]ip route-static 192.168.1.144 28 192.168.1.17 [R5]ip route-static 192.168.1.12 30 192.168.1.17 [R5]ip route-static 192.168.1.224 28 192.168.1.17[R5]ip route-static 192.168.1.240 28 192.168.1.17 [R5]ip route-static 192.168.1.8 30 192.168.1.17   [R5]ip route-static 192.168.1.192 28 192.168.1.17[R5]ip route-static 192.168.1.208 28 192.168.1.17 [R5]ip route-static 192.168.1.4 30 192.168.1.17 [R5]ip route-static 192.168.1.160 28 192.168.1.17 [R5]ip route-static 192.168.1.176 28 192.168.1.17 [R5]display this[V200R003C00]# sysname R5# snmp-agent local-engineid 800007DB03000000000000 snmp-agent # clock timezone China-Standard-Time minus 08:00:00#portal local-server load portalpage.zip# drop illegal-mac alarm# set cpu-usage threshold 80 restore 75#ip route-static 192.168.1.0 255.255.255.252 192.168.1.17ip route-static 192.168.1.4 255.255.255.252 192.168.1.17ip route-static 192.168.1.8 255.255.255.252 192.168.1.17ip route-static 192.168.1.12 255.255.255.252 192.168.1.17ip route-static 192.168.1.128 255.255.255.240 192.168.1.17ip route-static 192.168.1.144 255.255.255.240 192.168.1.17ip route-static 192.168.1.160 255.255.255.240 192.168.1.17ip route-static 192.168.1.176 255.255.255.240 192.168.1.17ip route-static 192.168.1.192 255.255.255.240 192.168.1.17ip route-static 192.168.1.208 255.255.255.240 192.168.1.17ip route-static 192.168.1.224 255.255.255.240 192.168.1.17ip route-static 192.168.1.240 255.255.255.240 192.168.1.17#return

静态路由配置完成后,测试AR1与192.168.1.22是否连通
在这里插入图片描述
做缺省

R1的缺省
[R1]ip route-static 0.0.0.0 0 192.168.1.2[R1]ip route-static 0.0.0.0 0 192.168.1.14R2的缺省[R2]ip route-static 0.0.0.0 0 192.168.1.6R3的缺省[R3]ip route-static 0.0.0.0 0 192.168.1.10Router1的缺省[r1]ip route-static 0.0.0.0 0 192.168.1.18

测试全网通

测试AR1路由器与5.5.5.1是否连通
在这里插入图片描述空接口:防止路由环路

R1防环
[R1]ip route-static 192.168.1.128 27 NULL 0R2防环[R2]ip route-static 192.168.1.160 27 NULL 0R3防环[R3]ip route-static 192.168.1.224 27 NULL 0Router1防环[r1]ip route-static 192.168.1.192 27 NULL 0

第五小题(设置优先级)

R1 [R1]ip route-static 0.0.0.0 0 192.168.1.22 preference 61R2[R2]ip route-static 0.0.0.0 0 192.168.1.22 preference 61Router1[r1]ip route-static 0.0.0.0 0 192.168.1.22 preference 61R3[R3]ip route-static 0.0.0.0 0 192.168.1.22 preference 61

  • 6
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值