ENSP静态路由实验一

ENSP静态路由实验一_第1张图片

 分析:如图所知,我们可以知道我们需要6个骨干链路网段和R1-R2每个路由器存在两个环回接口,所以一共是14个网段。

过程:

1.配置接口IP和网段信息

2.R1-R4配置缺省路由,R5配置空接口路由,防止产生路由黑洞。

3.配置R4-R5之间的浮动静态路由。

4.测试

配置:

        1.划分区段

ENSP静态路由实验一_第2张图片

        2.配置接口IP地址:      

r1配置:

[r1]int l0
[r1-LoopBack0]ip address 192.168.1.33 28
[r1-LoopBack0]int l1
[r1-LoopBack1]ip address 192.168.1.49 28

[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip address 192.168.1.1 30
[r1-GigabitEthernet0/0/0]int g0/0/1
[r1-GigabitEthernet0/0/1]ip address 192.168.1.5 30

r2配置:

[r2]int l0
[r2-LoopBack0]ip address 192.168.1.65 28
[r2-LoopBack0]int l1
[r2-LoopBack1]ip address 192.168.1.81 28

[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ip address 192.168.1.2 30
[r2-GigabitEthernet0/0/0]int g0/0/1
[r2-GigabitEthernet0/0/1]ip address 192.168.1.9 30

r3配置:

[r3]int l0
[r3-LoopBack0]ip address 192.168.1.97 28
[r3-LoopBack0]int l1
[r3-LoopBack1]ip address 192.168.1.113 28

[r3]int g0/0/0
[r3-GigabitEthernet0/0/0]ip address 192.168.1.6 30
[r3-GigabitEthernet0/0/0]int g0/0/1
[r3-GigabitEthernet0/0/1]ip address 192.168.1.13 30

r4配置:

[r4]int g0/0/0
[r4-GigabitEthernet0/0/0]ip address 192.168.1.14 30
[r4-GigabitEthernet0/0/0]int g0/0/1
[r4-GigabitEthernet0/0/1]ip address 192.168.1.10 30
[r4-GigabitEthernet0/0/1]int g0/0/2
[r4-GigabitEthernet0/0/2]ip address 192.168.1.17 30
[r4-GigabitEthernet0/0/2]int g4/0/0
[r4-GigabitEthernet4/0/0]ip address 192.168.1.21 30
[r4-GigabitEthernet4/0/0]int l0
[r4-LoopBack0]ip address 192.168.1.129 28
[r4-LoopBack0]int l1
[r4-LoopBack1]ip address 192.168.1.145 28

r5配置:

[r5]int g0/0/0
[r5-GigabitEthernet0/0/0]ip address 192.168.1.18 30
[r5-GigabitEthernet0/0/0]int g0/0/1
[r5-GigabitEthernet0/0/1]ip address 192.168.1.22 30
[r5-GigabitEthernet0/0/1]int l0
[r5-LoopBack0]ip address 5.5.5.5 24

       3. 配置静态路由和缺省路由:

r1配置:

R1---->R2

[r1]ip route-static 192.168.1.64 27 192.168.1.2
[r1]ip route-static 192.168.1.8 30 192.168.1.2

R1---->R4

[r1]ip route-static 192.168.1.128 27 192.168.1.2
[r1]ip route-static 192.168.1.128 27 192.168.1.6
[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.6

R1---->R3

[r1]ip route-static 192.168.1.12 30 192.168.1.6
[r1]ip route-static 192.168.1.96 27 192.168.1.6

缺省:

[r1]ip route-static 0.0.0.0 0 192.168.1.6

[r1]ip route-static 0.0.0.0 0 192.168.1.2

空接口:

[r1]ip route-static 192.168.1.32 27 NULL 0

浮动静态路由:

[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.6

r2配置:

R2---->R4

[r2]ip route-static 192.168.1.128 27 192.168.1.10
[r2]ip route-static 192.168.1.16 30 192.168.1.10
[r2]ip route-static 192.168.1.12 30 192.168.1.10

R2---->R3采用负载均衡

[r2]ip route-static 192.168.1.96 27 192.168.1.10
[r2]ip route-static 192.168.1.96 27 192.168.1.1
[r2]ip route-static 192.168.1.4 30 192.168.1.1

R2---->R1

[r2]ip route-static 192.168.1.32 27 192.168.1.1

缺省:

[r2]ip route-static 0.0.0.0 0 192.168.1.10

空接口:

[r2]ip route-static 192.168.1.64 27 NULL 0

浮动静态路由:

[r2]ip route-static 192.168.1.20 30 192.168.1.10

r3配置:

R3---->R1

[r3]ip route-static 192.168.1.32 27 192.168.1.5
[r3]ip route-static 192.168.1.0 30 192.168.1.5

R3---->R2采用负载均衡

[r3]ip route-static 192.168.1.64 27 192.168.1.5
[r3]ip route-static 192.168.1.64 27 192.168.1.14

R3---->R5
[r3]ip route-static 192.168.1.8 30 192.168.1.14
[r3]ip route-static 192.168.1.16 30 192.168.1.14
[r3]ip route-static 192.168.1.20 30 192.168.1.14

缺省:

[r3]ip route-static 0.0.0.0 0 192.168.1.14

空接口:

[r3]ip route-static 192.168.1.96 27 NULL 0

浮动静态路由:

[r3]ip route-static 192.168.1.20 30 192.168.1.14

r4配置:

r4---->r3

[r4]ip route-static 192.168.1.96 27 192.168.1.13
[r4]ip route-static 192.168.1.4 30 192.168.1.13

R4---->R1采用负载均衡
[r4]ip route-static 192.168.1.32 27 192.168.1.13
[r4]ip route-static 192.168.1.32 27 192.168.1.9

R4---->R2
[r4]ip route-static 192.168.1.0 30 192.168.1.9
[r4]ip route-static 192.168.1.64 27 192.168.1.9

缺省:

[r4]ip route-static 0.0.0.0 0 192.168.1.18

空接口:

[r4]ip route-static 192.168.1.128 27 NULL 0

浮动静态路由:

[r4]ip route-static 0.0.0.0 0 192.168.1.22 preference 70

r5配置:

[r5]ip route-static 192.168.1.32 27 192.168.1.17
[r5]ip route-static 192.168.1.64 27 192.168.1.17
[r5]ip route-static 192.168.1.96 27 192.168.1.17
[r5]ip route-static 192.168.1.128 27 192.168.1.17

[r5]ip route-static 192.168.1.0 30 192.168.1.17
[r5]ip route-static 192.168.1.4 30 192.168.1.17
[r5]ip route-static 192.168.1.8 30 192.168.1.17
[r5]ip route-static 192.168.1.12 30 192.168.1.17

浮动静态路由:

[r5]ip route-static 192.168.1.0 255.255.255.252 192.168.1.21 preference 61

[r5]ip route-static 192.168.1.4 255.255.255.252 192.168.1.21 preference 61

[r5]ip route-static 192.168.1.8 255.255.255.252 192.168.1.21 preference 61

[r5]ip route-static 192.168.1.12 255.255.255.252 192.168.1.21 preference 61

[r5]ip route-static 192.168.1.32 255.255.255.252 192.168.1.21 preference 61

[r5]ip route-static 192.168.1.64 255.255.255.252 192.168.1.21 preference 61

[r5]ip route-static 192.168.1.96 255.255.255.252 192.168.1.21 preference 61

[r5]ip route-static 192.168.1.128 255.255.255.252 192.168.1.21 preference 61

测试:

ping 192.168.1.65
ping 192.168.1.97
ping 192.168.1.9
ping 192.168.1.18
ping 5.5.5.1

ENSP静态路由实验一_第3张图片

ENSP静态路由实验一_第4张图片 

 


 

你可能感兴趣的:(ENSP,网络,运维)