静态路由综合实验

首先网段基于192.168.1.0来划分。我们先数一共有多少个广播域。因为在R1,R2,R4中每个路由器还有2个环回,R5有一个环回所以一共有14个。

1.先将网段分为6段配置给主路

我们需要192.168.1.0/24
分成8段(每少n个主机位则多2的n次方个)
即我们需要多3个网络位,则我们将192.168.1.0划分为:

192.168.1.0000 0000

192.168.1.0010 0000

192.168.1.0100 0000

192.168.1.0110 0000

192.168.1.1000 0000

192.168.1.1010 0000

192.168.1.1100 0000

192.168.1.1110 0000

我们需要6段,将前6段进行汇总变为

192.168.1.0000 0000 --- 192.168.1.0/30

192.168.1.0010 0000 --- 192.168.1.4/30

192.168.1.0100 0000 --- 192.168.1.8/30

192.168.1.0110 0000 --- 192.168.12/30

192.168.1.1000 0000 --- 192.168.16/30

192.168.1.1010 0000 --- 192.168.20/30

192.168.1.1100 0000

192.168.1.1110 0000

2.配置其他路

1.R1

R1环回:
192.168.1.32/27
L0:92.168.1.32/28
L1:192.168.1.48/28

2.R2

R2环回:192.168.1.64/27
L0:192.168.1.64/28
L1:192.168.1.80/28

3.R3

R3环回:192.168.1.96/27

4.R4

R4环回:192.168.1.128 28
L0:192.168.1.128 27
L1:192.168.1.144 27

5.R5

R5环回:192.168.1.160 27

6.剩余路段

3.配置ip地址

[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]interface g0/0/0
[R1-GigabitEthernet0/0/0]ip ad 192.168.1.1 30
Mar 20 2024 10:40:04-08:00 R1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R1-GigabitEthernet0/0/0]q
[R1]interface g0/0/1	
[R1-GigabitEthernet0/0/1]ip address 192.168.1.5 30
Mar 20 2024 10:44:21-08:00 R1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state.

[R2]interface LoopBack 0
[R2-LoopBack0]ip ad 192.168.1.65 28
[R2-LoopBack0]q
[R2]interface LoopBack 1
[R2-LoopBack1]ip ad 192.168.1.81 28
[R2-LoopBack1]quit
[R2]interface g0/0/0
[R2-GigabitEthernet0/0/0]ip ad 192.168.1.2 30
Mar 20 2024 11:19:36-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 g0/0/1
[R2-GigabitEthernet0/0/1]ip ad 192.168.1.9 30
Mar 20 2024 11:20:30-08:00 R2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 

[R3]interface LoopBack 0
[R3-LoopBack0]ip ad 192.168.1.97 27
[R3]interface g0/0/1
[R3-GigabitEthernet0/0/1]ip ad 192.168.1.13 30
Mar 20 2024 11:09:09-08:00 R3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R3]interface g0/0/0
[R3-GigabitEthernet0/0/0]ip ad 192.168.1.6 30
Mar 20 2024 11:09:46-08:00 R3 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 

[R4]interface LoopBack 0
[R4-LoopBack0]ip address 192.168.1.129 28
[R4]interface LoopBack 1
[R4-LoopBack1]ip address 192.168.1.145 28
[R4]interface g0/0/0
[R4-GigabitEthernet0/0/0]ip address 192.168.1.10 30
Mar 20 2024 10:49:04-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]interface g0/0/1
[R4-GigabitEthernet0/0/1]ip ad 192.168.1.14 30
Mar 20 2024 10:49:34-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]interface g4/0/0
[R4-GigabitEthernet4/0/0]ip ad 192.168.1.17 30
[R4-GigabitEthernet4/0/0]
Mar 20 2024 10:50:03-08:00 R4 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet4/0/0 has entered the UP state. 
[R4]interface g0/0/2
[R4-GigabitEthernet0/0/2]ip ad 192.168.1.21 30
Mar 20 2024 10:50:31-08:00 R4 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state. 

[r5]interface LoopBack 0
[r5-LoopBack0]ip ad 192.168.1.161 27
[r5]interface g0/0/2
[r5-GigabitEthernet0/0/2]ip address 192.168.1.22 30
Mar 20 2024 10:54:52-08:00 r5 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state. 
[r5]interface g0/0/0
[r5-GigabitEthernet0/0/0]ip address 192.168.1.18 30
Mar 20 2024 10:55:37-08:00 r5 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r5]interface g0/0/1
[r5-GigabitEthernet0/0/1]ip address 12.0.0.1 24
Mar 20 2024 10:56:04-08:00 r5 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state.

[R6]interface LoopBack 0
[R6-LoopBack0]ip ad 1.0.0.1 24
[R6]interface g0/0/0
[R6-GigabitEthernet0/0/0]ip address 12.0.0.2 24
Mar 20 2024 11:05:52-08:00 R6 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 

4.配置静态路由

避免环路制造空接口

用R1去pingR5可以ping通

5.nat实现外网通

配置缺省路由

ACL —— 访问控制列表

6.pc通过dhcp自动获取ip

7.telnet服务

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值