全网可达 实验作业

发布于:2022-12-30 ⋅ 阅读:(303) ⋅ 点赞:(0)

 

第一步 :查看广播域

第二步:根据广播域分配网段

第三步:配置IP

第四步:配置路由


R1  接口 0/0/0  0/0/1  0/0/2
R1: 配IP

[R1]in g 0/0/0
[R1-GigabitEthernet0/0/0]ip add  192.168.1.1 24

[R1-GigabitEthernet0/0/0]in g 0/0/1
[R1-GigabitEthernet0/0/1]ip add 192.168.2.1 24

[R1-GigabitEthernet0/0/1]int  g 0/0/2
[R1-GigabitEthernet0/0/2]ip add 192.168.3.1 24

[R1]display ip interface brief (查看)


R2  接口 0/0/0  0/0/1  
R2:配IP

 

[R2]int g 0/0/0
[R2-GigabitEthernet0/0/0]ip add 192.168.2.2  24

[R2-GigabitEthernet0/0/0]int g  0/0/1
[R2-GigabitEthernet0/0/1]ip add 192.168.4.1 24

[R2]display  ip interface  brief (查看)


R3   接口 0/0/0  0/0/1  
R3:配IP

 

[R3]int  g 0/0/0
[R3-GigabitEthernet0/0/0]ip add  192.168.3.2 24

[R3-GigabitEthernet0/0/0]int g 0/0/1
[R3-GigabitEthernet0/0/1]ip add 192.168.5.1 24

[R3]display  ip  interface  brief   (查看)

 

R4  接口 0/0/0  0/0/1  0/0/2
R4: 配IP

[R4]int g 0/0/0
[R4-GigabitEthernet0/0/0]ip add 192.168.5.2 24

[R4-GigabitEthernet0/0/0]int g 0/0/1
[R4-GigabitEthernet0/0/1]ip add  192.168.4.2 24

[R4-GigabitEthernet0/0/1]int  g  0/0/2
[R4-GigabitEthernet0/0/2]ip add 192.168.6.1 24

[R4]display  ip  interface  brief   (查看)


PC

 

 

 

配IP


配: 路由  
查看路由表

[R1]display  ip  routing-table

 

总共 6个网段  R1 缺少  
192.168.4.0
192.168.5.0
192.168. 6.0

 ----192.168.4.0  网段
R1 下一跳     0/0/0  192.168.2.2
[R1]ip route-static 192.168.4.0  24 192.168.2.2
-----192.168.5.0 网段
R1下一跳     0/0/0   192.168.2.2
[R1]ip route-static 192.168.5.0  24 192.168.3.2
-----192.168.6.0 网段
R1下一跳     0/0/0    192.168.2.2
                   0/0/0     192.168.3.2
[R1]ip route-static 192.168.6.0 24 192.168.2.2
[R1]ip route-static 192.168.6.0  24 192.168.3.2

[R1]display  ip  routing-table   (查看)

总共 6个网段  R2 缺少  
192.168.1.0
192.168.3.0
192.168.5.0
192.168. 6.0

 ----192.168.1.0  网段
R2 下一跳     0/0/1 192.168.2.1
[R2]ip route-static 192.168.1.0  24 192.168.2.1

 ----192.168.3.0  网段
R2 下一跳     0/0/1 192.168.2.1
[R2]ip route-static 192.168.3.0  24 192.168.2.1

----192.168.5.0  网段
R2  下一跳  0/0/1  192.168.4.2
[R2]ip route-static 192.168.5.0  24 192.168.4.2

----192.168.6.0  网段
R2  下一跳  0/0/1  192.168.4.2
[R2]ip route-static 192.168.6.0  24 192.168.4.2

[R2]display  ip  routing-table   (查看)


总共 6个网段  R3 缺少  
192.168.1.0
192.168.2.0
192.168.4.0
192.168.6.0

 ----192.168.1.0  网段
R3 下一跳     0/0/2 192.168.3.1
[R2]ip route-static 192.168.1.0  24 192.168.3.1

 ----192.168.2.0  网段
R3 下一跳     0/0/2 192.168.3.1
[R3]ip route-static 192.168.2.0  24 192.168.3.1

----192.168.4.0  网段
R3  下一跳  0/0/0  192.168.5.2
[R3]ip route-static 192.168.4.0  24 192.168.5.2

----192.168.6.0  网段
R3  下一跳  0/0/0  192.168.5.2
[R3]ip route-static 192.168.6.0  24 192.168.5.2

[R3]display  ip  routing-table   (查看)


总共 6个网段  R4 缺少  
192.168.1.0
192.168.2.0
192.168.3.0


 ----192.168.1.0  网段
R4 下一跳     0/0/1  192.168.4.1
                   0/0/1  192.168.5.1

[R4]ip route-static  192.168.1.0 24 192.168.4.1
[R4]ip route-static  192.168.1.0  24 192.168.5.1

-----192.168.2.0 网段
R1下一跳     0/0/1  192.168.4.1
[R1]ip route-static 192.168.2.0  24 192.168.4.1

-----192.168.3.0 网段
R1下一跳     0/0/1    192.168.5.1
[R1]ip route-static 192.168.3.0 24 192.168.5.1

[R4]display  ip  routing-table   (查看)

 

 

 

 

 

 

 

 

 

 

本文含有隐藏内容,请 开通VIP 后查看