静态路由协议扩展配置实验

要求:

1.全网用192.168.1.0/24进行IP地址分配

192.168.1.0/28

划分:
192.168.1.32/28
192.168.1.64/28
192.168.1.96/28
192.168.1.128/28  
192.168.1.160/28
192.168.1.192/28

R3环回:192.168.1.32/28  192.168.1.48/28

R4环回:192.168.1.64/28  192.168.1.80/28

R5环回:192.168.1.96/28  192.168.1.112/28

R6环回:192.168.1.128/28  192.168.1.144/28

R7环回:192.168.1.160/28  192.168.1.176/28

2.R7作为DHCP服务器为PC分配IP地址

<Huawei>sys	
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R7
[R7]inter	
[R7]interface G	
[R7]interface GigabitEthernet 0/0/0
[R7-GigabitEthernet0/0/0]ip add	
[R7-GigabitEthernet0/0/0]ip address 192.168.1.18 30
[R7-GigabitEthernet0/0/0]
Oct 21 2023 14:07:57-08:00 R7 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R7-GigabitEthernet0/0/0]quit
[R7]inter	
[R7]interface G	
[R7]interface GigabitEthernet 0/0/1
[R7-GigabitEthernet0/0/1]ip add	
[R7-GigabitEthernet0/0/1]ip address 192.168.1.22 30
Oct 21 2023 14:08:32-08:00 R7 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R7-GigabitEthernet0/0/1]quit
[R7]inter	
[R7]interface G	
[R7]interface GigabitEthernet 0/0/2
[R7-GigabitEthernet0/0/2]ip add	
[R7-GigabitEthernet0/0/2]ip address 192.168.1.193 27
Oct 21 2023 14:09:21-08:00 R7 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state. 

3.路由上均具备2个环回地址

R3

<R3>system-view 
Enter system view, return user view with Ctrl+Z.
[R3]inter	
[R3]interface L	
[R3]interface LoopBack 0
[R3-LoopBack0]ip add	
[R3-LoopBack0]ip address 192.168.1.33 28
[R3-LoopBack0]quit
[R3]inter	
[R3]interface L	
[R3]interface LoopBack 1
[R3-LoopBack1]ip add	
[R3-LoopBack1]ip address 192.168.1.49 28

R4

<R4>system-view 
Enter system view, return user view with Ctrl+Z.
[R4]inter	
[R4]interface L	
[R4]interface LoopBack 0
[R4-LoopBack0]ip add	
[R4-LoopBack0]ip address 192.168.1.65 28
[R4-LoopBack0]quit
[R4]inter	
[R4]interface L	
[R4]interface LoopBack 1
[R4-LoopBack1]ip add	
[R4-LoopBack1]ip address 192.168.1.81 28

R5

<R5>system-view 
Enter system view, return user view with Ctrl+Z.
[R5]inter	
[R5]interface L	
[R5]interface LoopBack 0
[R5-LoopBack0]ip add	
[R5-LoopBack0]ip address 192.168.1.97 28
[R5-LoopBack0]quit
[R5]inter	
[R5]interface L	
[R5]interface LoopBack 
                       ^
Error:Incomplete command found at '^' position.
[R5]inter	
[R5]interface L	
[R5]interface LoopBack 1
[R5-LoopBack1]ip add	
[R5-LoopBack1]ip address 192.168.1.113 28

R6

<R6>system-view 
Enter system view, return user view with Ctrl+Z.
[R6]inter	
[R6]interface L	
[R6]interface LoopBack 0
[R6-LoopBack0]ip add	
[R6-LoopBack0]ip address 192.168.1.129 28
[R6-LoopBack0]quit
[R6]inter	
[R6]interface L	
[R6]interface LoopBack 
                       ^
Error:Incomplete command found at '^' position.
[R6]inter	
[R6]interface L	
[R6]interface LoopBack 1
[R6-LoopBack1]ip add	
[R6-LoopBack1]ip address 192.168.1.145 28

4.R10和R11之间正常走1000M,备份走100M

R6和R7有一条线路为浮动静态路由

5.全网尽量负载均衡

6.减少路由表数量,并避免环路产生

R4

<R4>system-view 
Enter system view, return user view with Ctrl+Z.
[R4]ip rou    
[R4]ip route
[R4]ip route-static 192.168.1.64 27 NULL 0

R3

<R3>sys	
<R3>system-view 
Enter system view, return user view with Ctrl+Z.
[R3]ip rou	
[R3]ip route
[R3]ip route-static 192.168.1.32 27 NULL 0

R5

<R5>sys	
<R5>system-view 
Enter system view, return user view with Ctrl+Z.
[R5]ip rou	
[R5]ip route
[R5]ip route-static 192.168.1.96 27 NULL 0
[R5]


 

7.全网可达

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值