静态路由综合实验

拓扑图

在这里插入图片描述

需求分析

1、全网用192.168. 1.0/24进行IP地址分配
2、R7作为DHCP服务器为PC分配IP地址
3、路由上均具备2个环回地址
4、R6与R7之间正常走1000M,备份走100M
5、全网尽量负载均衡
6、减少路由表数量,并避免环路产生
7、全网可达

配置内容

1.分配IP地址

192.168.1.0/24
192.168.1.000 00000/27----骨干链路
192.168.1.000 000 00/30---192.168.1.0/30---12
192.168.1.000 001 00/30---192.168.1.4/30---13
192.168.1.000010 00/30---192.168.1.8/30---24
192.168.1.000 011 00/30---192.168.1.12/30---34
192.168.1.000 100 00/30---192.168.1.16/30---45
192.1681.000 101 00/30---192.168.1.20/30---45
192.168.1.000 110 00/30---192.168.1.24/30---保留
192.168.1.000 111 00/30---192.168.1.28/30---保留
192.168.1.001 00000/27----R1环回
192.168.1.001 0 0000/28---192.168.1.32/28
192.168.1.001 1 0000/28---192.168.1.48/28
192.168.1.010 00000/27----R2环回
192.168.1.010 0 0000/28---192.168.1. 64/28
192.168.1.010 1 0000/28---192.168.1.80/28
192.168.1.011 00000/27----R3环回
192.168.1.0110 0000/28---192.168.1.96/28
192.168.1.011 1 0000/28---192.168.1.112/28
192.168.1.100 00000/27----R4环回
192.168.1.100 0 0000/28---192.168.1.128/28
192.168.1.100 1 0000/28---192.168.1.144/28
192.168.1.101 00000/27----R5环回
192.168.1.101 0 0000/28---192.168.1. 160/28
192.168.1.1011 0000/28---192.168.1.176/28
192.168.1.110 00000/27----DHCP
192.168.1.111 00000/27----保留

2.IP配置

[ar1]interface GigabitEthernet 0/0/0
[ar1-GigabitEthernet0/0/0]ip address 192.168.1.1 30
May  6 2023 22:36:15-08:00 ar1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
 on the interface GigabitEthernet0/0/0 has entered the UP state. 
[ar1-GigabitEthernet0/0/0]int g 0/0/1
[ar1-GigabitEthernet0/0/1]ip address 192.168.1.5 30
May  6 2023 22:39:10-08:00 ar1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
 on the interface GigabitEthernet0/0/1 has entered the UP state. 
[ar1]interface LoopBack 0
[ar1-LoopBack0]ip address 192.168.1.33 28
[ar1-LoopBack0]q
[ar1]interface LoopBack 1
[ar1-LoopBack1]ip address 192.168.1.49 28

[ar2]interface GigabitEthernet 0/0/1
[ar2-GigabitEthernet0/0/1]ip address 192.168.1.9 30
May  6 2023 22:45:57-08:00 ar2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
 on the interface GigabitEthernet0/0/1 has entered the UP state. 
[ar2-GigabitEthernet0/0/1]int g 0/0/0
[ar2-GigabitEthernet0/0/0]ip address 192.168.1.2 30
May  6 2023 22:47:27-08:00 ar2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
 on the interface GigabitEthernet0/0/0 has entered the UP state. 
[ar2-GigabitEthernet0/0/0]q
[ar2]interface LoopBack 0
[ar2-LoopBack0]ip address 192.168.1.65 28
[ar2-LoopBack0]int l 1
[ar2-LoopBack1]ip address 192.168.1.81 28

[ar3]interface GigabitEthernet 0/0/0
[ar3-GigabitEthernet0/0/0]ip address 192.168.1.6 30
May  6 2023 22:50:57-08:00 ar3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
 on the interface GigabitEthernet0/0/0 has entered the UP state. 
[ar3-GigabitEthernet0/0/0]int g 0/0/1
[ar3-GigabitEthernet0/0/1]ip address 192.168.1.13 30
May  6 2023 22:51:52-08:00 ar3 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
 on the interface GigabitEthernet0/0/1 has entered the UP state. 
[ar3-GigabitEthernet0/0/1]q
[ar3]interface LoopBack 0
[ar3-LoopBack0]ip address 192.168.1.97 28
[ar3-LoopBack1]ip address 192.168.1.113 28

[ar4]interface GigabitEthernet 0/0/0
[ar4-GigabitEthernet0/0/0]ip address 192.168.1.10 30
May  6 2023 23:00:34-08:00 ar4 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP
 on the interface GigabitEthernet0/0/0 has entered the UP state. 
[ar4-GigabitEthernet0/0/0]int g 0/0/1
[ar4-GigabitEthernet0/0/1]ip address 192.168.1.14 30
May  6 2023 23:01:21-08:00 ar4 %%01IFNET/4/LINK_STATE(l)[4]:The line protocol IP
 on the interface GigabitEthernet0/0/1 has entered the UP state. 
[ar4-GigabitEthernet0/0/1]int g 4/0/0 
[ar4-GigabitEthernet4/0/0]ip address 192.168.1.21 30
May  6 2023 23:02:37-08:00 ar4 %%01IFNET/4/LINK_STATE(l)[5]:The line protocol IP
 on the interface GigabitEthernet4/0/0 has entered the UP state. 
[ar4-GigabitEthernet4/0/0]int g 0/0/2
[ar4-GigabitEthernet0/0/2]ip address 192.168.1.17 30
May  6 2023 23:03:10-08:00 ar4 %%01IFNET/4/LINK_STATE(l)[6]:The line protocol IP
 on the interface GigabitEthernet0/0/2 has entered the UP state. 
[ar4-GigabitEthernet0/0/2]q
[ar4]interface LoopBack 0
[ar4-LoopBack0]ip address 192.168.1.128 28
Error: The specified IP address is invalid.
[ar4-LoopBack0]int l 1
[ar4-LoopBack1]ip address 192.168.1.145 28
[ar4-LoopBack1]int l 0
[ar4-LoopBack0]ip address 192.168.1.129 28
[ar5]interface GigabitEthernet 0/0/2
[ar5-GigabitEthernet0/0/2]ip address 192.168.1.18 30
May  6 2023 23:08:02-08:00 ar5 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
 on the interface GigabitEthernet0/0/2 has entered the UP state. 
[ar5-GigabitEthernet0/0/2]int g 4/0/0
[ar5-GigabitEthernet4/0/0]q
[ar5]interface GigabitEthernet 0/0/2
[ar5-GigabitEthernet0/0/2]undo ip address 
May  6 2023 23:09:26-08:00 ar5 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
 on the interface GigabitEthernet0/0/2 has entered the DOWN state. 
[ar5-GigabitEthernet0/0/2]ip address 192.168.1.193 27
May  6 2023 23:10:02-08:00 ar5 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP
 on the interface GigabitEthernet0/0/2 has entered the UP state. 
[ar5-GigabitEthernet0/0/2]int g 0/0/0
[ar5-GigabitEthernet0/0/0]ip address 192.168.1.18 30
May  6 2023 23:10:46-08:00 ar5 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP
 on the interface GigabitEthernet0/0/0 has entered the UP state. 
[ar5-GigabitEthernet0/0/0]int g 0/0/1
[ar5-GigabitEthernet0/0/1]ip address 192.168.1.22 30
May  6 2023 23:11:54-08:00 ar5 %%01IFNET/4/LINK_STATE(l)[4]:The line protocol IP
 on the interface GigabitEthernet0/0/1 has entered the UP state. 
[ar5-GigabitEthernet0/0/1]q
[ar5]interface LoopBack 0
[ar5-LoopBack0]ip address 192.168.1.160 28
Error: The specified IP address is invalid.
[ar5-LoopBack0]ip address 192.168.1.161 28
[ar5-LoopBack0]int l 1
[ar5-LoopBack1]ip address 192.168.1.177 28

3.配置路由

[ar1]ip route-static 192.168.1.64 27 192.168.1.2
[ar1]ip route-static 192.168.1.96 27 192.168.1.6
[ar1]ip route-static 192.168.1.8 30 192.168.1.2
[ar1]ip route-static 192.168.1.12 30 192.168.1.6
[ar1]ip route-static 0.0.0.0 0 192.168.1.2
[ar1]ip route-static 0.0.0.0 192.168.1.6
[ar1]ip route-static 192.168.1.32 27 NULL 0
[ar2]ip route-static 192.168.1.32 27 192.168.1.1
[ar2]ip route-static 192.168.1.4 30 192.168.1.1
[ar2]ip route-static 192.168.1.96 27 192.168.1.1
[ar2]ip route-static 192.168.1.96 27 192.168.1.10
[ar2]ip route-static 0.0.0.0 0 192.168.1.10
[ar2]ip route-static 192.168.1.64 27 NULL 0`
[ar3]ip route-static 192.168.1.32 27 192.168.1.5
[ar3]ip route-static 192.168.1.0 30 192.168.1.5
[ar3]ip route-static 192.168.1.64 27 192.168.1.5
[ar3]ip route-static 192.168.1.64 27 192.168.1.14
[ar3]ip route-static 0.0.0.0 0 192.168.1.14
[ar3]dhcpv6
[ar3]ip route-static 192.168.1.96 27 NULL 0
[ar4]ip route-static 192.168.1.32 27 192.168.1.9
[ar4]ip route-static 192.168.1.32 27 192.168.1.13
[ar4]ip route-static 192.168.1.0 30 192.168.1.9
[ar4]ip route-static 192.168.1.4 30 192.168.1.13
[ar4]ip route-static 192.168.1.64 27 192.168.1.9
[ar4]ip route-static 192.168.1.96 27 192.168.1.13
[ar4]ip route-static 0.0.0.0 0 192.168.1.18
[ar4]ip route-static 0.0.0.0 0 192.168.1.22 preference 90
[ar4]ip route-static 192.168.1.128 27 NULL 0
[ar5]ip route-static 192.168.1.0 24 192.168.1.17
[ar5]ip route-static 192.168.1.0 24 192.168.1.21 preference 90	
[ar5]dhcp enable 
[ar5-ip-pool-11]network 192.168.1.192 mask 27
[ar5-ip-pool-11]gateway-list 192.168.1.193
[ar5-ip-pool-11]dns-list 114.114.114.114
[ar5-ip-pool-11]q
[ar5]interface GigabitEthernet 0/0/2
[ar5-GigabitEthernet0/0/2]dhcp select global 
[ar5-GigabitEthernet0/0/2]q
[ar5]ip route-static 192.168.1.24 29 NULL 0
[ar5]ip route-static 192.168.1.224 27 NULL 0
[ar5]ip route-static 192.168.1.160 27 NULL 0

结果测试

在这里插入图片描述
在这里插入图片描述

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值