IP第一次实验报告

一,划分子网

将192.168.1.0 24划分为4个网段

192.168.1.0 /26  192.168.1.64 /26

192.168.1.128 /26 192.168.1.192 /26

取192.168.1.0/26继续划分主干道网段

取192.168.1.64 /26继续划分并分配给R2环回

取192.168.1.128 /26分配给交换机所在广播域

 二,添加ip地址

R1:

[r1-GigabitEthernet0/0/0]ip add 192.168.1.1 30
[r1-GigabitEthernet0/0/1]ip add 192.168.1.5 30
 

R2:

[r2-GigabitEthernet0/0/0]ip add 192.168.1.2 30
[r2-GigabitEthernet0/0/1]ip add 192.168.1.25 30
[r2-LoopBack0]ip add 192.168.1.65 28
[r2-LoopBack1]ip add 192.168.1.81 28
[r2-LoopBack2]ip add 192.168.1.97 28
 

R3:

[r3-GigabitEthernet0/0/0]ip add 192.168.1.21 30
[r3-GigabitEthernet0/0/1]ip add 192.168.1.26 30
[r3-GigabitEthernet0/0/2]ip add 192.168.1.129 26

R4:

[r4-GigabitEthernet0/0/1]ip add 192.168.1.6 30
[r4-GigabitEthernet0/0/0]ip add 192.168.1.22 30
[r4-GigabitEthernet0/0/2]ip add 192.168.1.9 30
[r4-GigabitEthernet4/0/0]ip add 192.168.1.17 30
 

R5:

[r5-GigabitEthernet0/0/0]ip add 192.168.1.10 30
[r5-GigabitEthernet0/0/2]ip add 192.168.1.18 30
[r5-GigabitEthernet0/0/1]ip add 192.168.1.13 30

R6:

[r6-GigabitEthernet0/0/0]ip add 192.168.1.14 30

三,配置静态路由

R1

[r1]ip route-static 192.168.1.8 30 192.168.1.6
[r1]ip route-static 192.168.1.24 30 192.168.1.2
[r1]ip route-static 192.168.1.20 30 192.168.1.6 
[r1]ip route-static 192.168.1.16 30 192.168.1.6   
[r1]ip route-static 192.168.1.128 26 192.168.1.21
[r1]ip route-static 192.168.1.128 26 192.168.1.26  
[r1]ip route-static 192.168.1.12 30 192.168.1.10
[r1]ip route-static 192.168.1.12 30 192.168.1.18 
[r1]ip route-static 192.168.1.64 26 192.168.1.2
[r1]ip route-static 192.168.1.12 30 192.168.1.18
 

R2

[r2]ip route-static 192.168.1.4 30 192.168.1.1 
[r2]ip route-static 192.168.1.20 30 192.168.1.26   
[r2]ip route-static 192.168.1.128 26 192.168.1.26
[r2]ip route-static 192.168.1.8 30 192.168.1.6
[r2]ip route-static 192.168.1.8 30 192.168.1.22
[r2]ip route-static 192.168.1.16 30 192.168.1.22
[r2]ip route-static 192.168.1.16 30 192.168.1.6
[r2]ip route-static 192.168.1.12 30 192.168.1.10
[r2]ip route-static 192.168.1.12 30 192.168.1.18
 

R3

[r3]ip route-static 192.168.1.0 30 192.168.1.25  
[r3]ip route-static 192.168.1.4 30 192.168.1.22 
[r3]ip route-static 192.168.1.8 30 192.168.1.22
[r3]ip route-static 192.168.1.16 30 192.168.1.22
[r3]ip route-static 192.168.1.12 30 192.168.1.10
[r3]ip route-static 192.168.1.12 30 192.168.1.18
[r3]ip route-static 192.168.1.64 26 192.168.1.25
 

R4

[r4]ip route-static 192.168.1.0 30 192.168.1.5
[r4]ip route-static 192.168.1.24 30 192.168.1.21  
[r4]ip route-static 192.168.1.64 26 192.168.1.25
[r4]ip route-static 192.168.1.64 26 192.168.1.2    
[r4]ip route-static 192.168.1.128 26 192.168.1.21 
[r4]ip route-static 192.168.1.12 30 192.168.1.10  

R5

[r5]ip route-static 192.168.1.4 30 192.168.1.9
[r5]ip route-static 192.168.1.4 30 192.168.1.17   
[r5]ip route-static 192.168.1.20 30 192.168.1.17
[r5]ip route-static 192.168.1.20 30 192.168.1.9 
[r5]ip route-static 192.168.1.24 30 192.168.1.21
[r5]ip route-static 192.168.1.0 30 192.168.1.5    
[r5]ip route-static 192.168.1.64 26 192.168.1.2
[r5]ip route-static 192.168.1.64 26 192.168.1.25   
[r5]ip route-static 192.168.1.128 26 192.168.1.21
 

R6

[r6]ip route-static 192.168.1.8 30 192.168.1.13
[r6]ip route-static 192.168.1.16 30 192.168.1.13
[r6]ip route-static 192.168.1.4 30 192.168.1.9
[r6]ip route-static 192.168.1.4 30 192.168.1.17 
[r6]ip route-static 192.168.1.20 30 192.168.1.9
[r6]ip route-static 192.168.1.20 30 192.168.1.17 
[r6]ip route-static 192.168.1.24 30 192.168.1.21   
[r6]ip route-static 192.168.1.0 30 192.168.1.5   
[r6]ip route-static 192.168.1.64 26 192.168.1.2
[r6]ip route-static 192.168.1.64 26 192.168.1.25
[r6]ip route-static 192.168.1.128 26 192.168.1.21
 

四防环 

[r2]ip route-static 192.168.1.64 25 null 0

五浮动静态路由

[r4]ip route-static 192.168.1.12 30 192.168.1.18 preference 70

六,DHCP自动获取ip地址

[r3]dhcp enable 
Info: The operation may take a few seconds. Please wait for a moment.done.
[r3]ip p r3
Info: It's successful to create an IP address pool. 
[r3-ip-pool-r3]network 192.168.1.128 mask 26
[r3-ip-pool-r3]gateway-list 192.168.1.129
[r3-ip-pool-r3]dns-list 8.8.8.8 114.114.114.114
[r3-ip-pool-r3]q
[r3]int g0/0/2
[r3-GigabitEthernet0/0/2]dhcp select global 
 

七,全网可达 

 

 

 

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值