全网可达 实验作业

第一步 :查看广播域

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

第三步:配置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   (查看)

 

 

 

 

 

 

 

 

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

X卓

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值