静态路由实验

1.需求:

  1.除R5环只地址固定以外,其他所有网段基于192.168.1./24进行合理的IP地址划分

  2.R1-2-4路由器上均存在两个环回,用来模拟用户网段,地址便用192.168.1.8/24划分

 3.R1-R4上不能直接写去往5.5.5.5/24网段路中,但仍可访问。

 4.全网可达,尽量减少每台路由器路由表路由条目。-汇总

 5.R4-R5之间,正常走1BeM连路,故障走1OBM链路。

 6.PC1和Pc2使用DHCP动态获取IP地址

2.步骤

192.168.1.0 24

子网划分

需求13个广播域

R1-2-4路由器上均存在两个环回——进行汇总(3)

骨干链路,用户网段

有5个网段——子网划分

192.168.1.0 24

192.168.1.000 00000 27

192.168.1.0 27——6个骨干链路使用 (2个接口)-节省IP

102.168.1.000 000 00 30

192.168.1.0 30

192.168.1.4 30

192.168.1.8 30

192.168.1.12 30

192.168.1.16 30

192.168.1.20 30

192.168.1.24 30

192.168.1.28 30

R1-2-4路由器上均存在两个环回

192.168.1.32 27——r1上环回-先子网划分

192.168.1.001 0 0000 28

192.168.1.32 28

192.168.1.001 1 0000

192.168.1.48 28

192.168.1.64 27——r2上环回

192.168.1.64 28

192.168.1.80 28

192.168.1.96 27——r4上环回

192.168.1.96 28

192.168.1.112 28

192.168.1.128 27——r3

R5——环回地址固定

192.168.1.160 27

192.168.1.192 27

192.168.1.224 27

配置IP——给某一个接口配置一个相应的地址,依次配置r1、r2、r3、r4、r5

ping接口——检查接口配置

配置路由——r1中配置路由添r4路由时存在负载均衡

配置192.168.1.16 30的路由[r1]ip route-static 192.168.1.16 30 192.168.1.3

                                                   [r1]ip route-static 192.168.1.16 30 192.168.1.10

r1配置完成

测试路由

<r1>ping -a 192.168.1.33 192.168.1.17

配置r5

配置成功-

需求:R1-R4上不能直接写去往5.5.5.5/24网段路中,但仍可访问。

[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.10——负载均衡

[r2]ip route-static 0.0.0.0 0 192.168.1.6——r2配置缺省

[r3]ip route-static 0.0.0.0 0 192.168.1.14——r3配置缺省

[r4]ip route-static 0.0.0.0 0 192.168.1.18——r4配置缺省

测试——全网可达

[r1]ip route-static 192.168.1.32 27 NULL 0——配置空接口

[r2]ip route-static 192.168.1.64 27 NULL 0

[r4]ip route-static 192.168.1.96 27 NULL 0

测试

需求:R4-R5之间,正常走1BeM连路,故障走1OBM链路。

[r4]ip route-static 0.0.0.0 0 192.168.1.22 preference 61——更改路由优先级数值范围<0-255>,优先级数值越大,优先级的级别反而越大

当故障时

0.0.0.0/0   Static  61   0          RD   192.168.1.22    GigabitEthernet

Undo shutdown——打开接口

r5上配置路由并更改优先级

需求:PC1和Pc2使用DHCP动态获取IP地址

[r3]dhcp en        

[r3]dhcp enable

Info: The operation may take a few seconds. Please wait for a moment.done.

[r3]ip pool        

[r3]ip pool 111

Info: It's successful to create an IP address pool.

[r3-ip-pool-111]net        

[r3-ip-pool-111]netbios-type

[r3-ip-pool-111]network 192.168.1.128 m        

[r3-ip-pool-111]network 192.168.1.128 mask 27

[r3-ip-pool-111]

[r3-ip-pool-111]

[r3-ip-pool-111]gat        

[r3-ip-pool-111]gateway-list 192.168.1.129

[r3-ip-pool-111]

[r3-ip-pool-111]dns        

[r3-ip-pool-111]dns-list 8.8.8.8

[r3-ip-pool-111]q

[r3]

[r3]int        

[r3]interface g        

[r3]interface GigabitEthernet 0/0/1

[r3-GigabitEthernet0/0/1]dh        

[r3-GigabitEthernet0/0/1]dhcp s        

[r3-GigabitEthernet0/0/1]dhcp selectg        

[r3-GigabitEthernet0/0/1]dhcp select g        

[r3-GigabitEthernet0/0/1]dhcp select global

验证——可达

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值