实验报告一

题目分析

1、1个路由器有2个环回地址 5个路由器共10个环回地址 10+7=17 因为2^4=16,2^5=32 所以掩码

        为29。进行子网划分

2、在该路由器进行DHCP相关操作分配IP

3、R6与R7之间进行浮动静态路由操作

4、路由表配置,分析负载均衡

5、合理划分IP地址规划网络,创建环回接口

6、不同广播域的下一跳

一、子网划分

方法A

192.169.1.00000 000                      /29 

192.169.1.00001 000  .8                 /29

192.169.1.00010 000 .16                /29

192.169.1.00011 000 .24                /29

192.169.1.00100 000 .32                /29 

192.169.1.00101 000 .40                /29

192.169.1.00110 000 .48                /29

192.169.1.00111 000 .56                /29

192.169.1.01000 000 .64                /29

192.169.1.01001 000 .72                /29

192.169.1.01010 000 .80                /29

192.169.1.01011 000 .88                /29

192.169.1.01100 000 .96                /29

192.169.1.01101 000 .104              /29

192.169.1.01110 000 .112               /29

192.169.1.01111 000 .120               /29

192.169.1.10000 000 .128               /29

、、、、、、、、、

方法B

192.168.1.0000 0000 /28

192.168.1.0001 0000 /28

192.168.1.0010 0000 /28

192.168.1.0011 0000 /28

192.168.1.0100 0000 /28

192.168.1.0101 0000 /28

192.168.1.0110 0000 /28

192.168.1.0111 0000 /28

192.168.1.1000 0000 /28

192.168.1.1001 0000 /28

192.168.1.1010 0000 /28

192.168.1.1011 0000 /28

192.168.1.1100 0000 /28

192.168.1.1101 0000 /28

192.168.1.1110 0000 /28

192.168.1.1111 0000 /28

192.168.1.1111 0000 /29

192.168.1.11110 000 /29

192.168.1.11111 000 /29

二、配IP

1、分析

AR1: 0/0/0 192.168.1.57/29

0/0/1 192.168.1.33/29

0/0/2 192.168.1.81/29

4/0/0 192.168.1.89/29

环回地址1:192.168.1.97/29

环回地址2:192.168.1.105/29

AR2: 0/0/1 192.168.1.34/29

0/0/0 192.168.1.1/29

环回地址1:192.168.1.41/29

环回地址2:192.168.1.49/29

AR3: 0/0/1 192.168.1.58/29

0/0/0 192.168.1.9/29

环回地址1:192.168.1.65/29

环回地址2:192.168.1.73/29

AR4: 0/0/0 192.168.1.2/29

0/0/1 192.168.1.10/29

环回地址1:192.168.1.17/29

环回地址2:192.168.1.25/29

AR5: 0/0/0 192.168.1.82/29

0/0/1 192.168.1.90/29

0/0/2 192.168.1.128/29

环回地址1:192.168.1.113/29

环回地址2:192.168.1.121/29

PC1: DHCP

PC2: DHCP

2、实操

(1)锁定AR1端

[AR1]interface GigabitEthernet 0/0/0

[AR1-GigabitEthernet0/0/0]ip address 192.168.1.57 29

[AR1]interface GigabitEthernet 0/0/1

[AR1-GigabitEthernet0/0/1]ip address 192.168.1.33 29

[AR1]interface GigabitEthernet 0/0/2

[AR1-GigabitEthernet0/0/2]ip address 192.168.1.81 29

[AR1]interface GigabitEthernet 4/0/0

[AR1-GigabitEthernet4/0/0]ip address 192.168.1.89 29

[AR1]interface LoopBack 1

[AR1-LoopBack1]ip address 192.168.1.97 29

[AR1]interface LoopBack 2

[AR1-LoopBack2]ip address 192.168.1.105 29

    AP1 IP配置完成并查看

Interface IP Address/Mask Physical Protocol 

GigabitEthernet0/0/0 192.168.1.57/29 up up

GigabitEthernet0/0/1 192.168.1.33/29 up up

GigabitEthernet0/0/2 192.168.1.81/29 up up

GigabitEthernet4/0/0 192.168.1.89/29 up up

LoopBack1 192.168.1.97/29 up up(s)

LoopBack2 192.168.1.105/29 up up(s)

NULL0 unassigned up up(s)

[AR1]

(2)锁定AR2端

[AR2]interface GigabitEthernet 0/0/0

[AR2-GigabitEthernet0/0/0]ip address 192.168.1.1 29

[AR2]interface GigabitEthernet 0/0/1

[AR2-GigabitEthernet0/0/1]ip address 192.168.1.34 29

[AR2]interface LoopBack 1

[AR2-LoopBack1]ip address 192.168.1.41 29

[AR2]interface LoopBack 2 [AR2-LoopBack2]ip address 192.168.1.49 29

AP2 IP配置完成并查看

Interface IP Address/Mask Physical Protocol

GigabitEthernet0/0/0 192.168.1.1/29 up up

GigabitEthernet0/0/1 192.168.1.34/29 up up

GigabitEthernet0/0/2 unassigned down down

LoopBack1 192.168.1.41/29 up up(s)

LoopBack2 192.168.1.49/29 up up(s)

NULL0 unassigned up up(s)

[AR2]

(3)锁定AR3端

[AR3]interface GigabitEthernet 0/0/0

[AR3-GigabitEthernet0/0/0]ip address 192.168.1.9 29

[AR3]interface GigabitEthernet 0/0/1

[AR3-GigabitEthernet0/0/1]ip address 192.168.1.58 29

[AR3]interface LoopBack 1

[AR3-LoopBack1]ip address 192.168.1.65 29

[AR3]interface LoopBack 2

[AR3-LoopBack2]ip address 192.168.1.73 29

AP3 IP配置完成并查看

Interface IP Address/Mask Physical Protocol

GigabitEthernet0/0/0 192.168.1.9/29 up up

GigabitEthernet0/0/1 192.168.1.58/29 up up

GigabitEthernet0/0/2 unassigned down down

LoopBack1 192.168.1.65/29 up up(s)

LoopBack2 192.168.1.73/29 up up(s)

NULL0 unassigned up up(s)

[AR3]

(4)锁定AR4端

[AR4]interface GigabitEthernet 0/0/0

[AR4-GigabitEthernet0/0/0]ip address 192.168.1.2 29

[AR4]interface GigabitEthernet 0/0/1

[AR4-GigabitEthernet0/0/1]ip address 192.168.1.10 29

[AR4]interface LoopBack 1

[AR4-LoopBack1]ip address 192.168.1.17 29

[AR4]interface LoopBack 2

[AR4-LoopBack2]ip address 192.168.1.25 29

AP4 IP配置完成并查看

Interface                         IP Address/Mask                 Physical                 Protocol

GigabitEthernet0/0/0       192.168.1.2/29                        up                         up

GigabitEthernet0/0/1       192.168.1.10/29                      up                         up

GigabitEthernet0/0/2          unassigned                       down                      down

LoopBack1                      192.168.1.17/29                      up                         up(s)

LoopBack2                      192.168.1.25/29                      up                         up(s)

NULL0 unassigned up up(s)

[AR4]

(5)锁定AR5端

[AR5]interface GigabitEthernet 0/0/0

[AR5-GigabitEthernet0/0/0]ip address 192.168.1.82 29

[AR5]interface GigabitEthernet 0/0/1

[AR5-GigabitEthernet0/0/1]ip address 192.168.1.90 29

[AR5]interface GigabitEthernet 0/0/2

[AR5-GigabitEthernet0/0/2]ip address 192.168.1.129 29

[AR5]interface LoopBack 1

[AR5-LoopBack1]ip address 192.168.1.113 29

[AR5]interface LoopBack 2

[AR5-LoopBack2]ip address 192.168.1.121 29

AP5 IP配置完成并查看

Interface IP Address/Mask Physical Protocol

GigabitEthernet0/0/0 192.168.1.82/29 up up

GigabitEthernet0/0/1 192.168.1.90/29 up up

GigabitEthernet0/0/2 192.168.1.129/29 up up

GigabitEthernet4/0/0 unassigned down down

LoopBack1 192.168.1.113/29 up up(s)

LoopBack2 192.168.1.121/29 up up(s)

NULL0 unassigned up up(s)

[AR5]

三、DHCP

[AR5]dhcp enable

[AR5]ip pool aa

[AR5-ip-pool-aa]network 192.168.1.128 mask 29

[AR5-ip-pool-aa]gateway-list 192.168.1.129

[AR5-ip-pool-aa]dns-list 8.8.8.8

[AR5]interface GigabitEthernet 0/0/2

[AR5-GigabitEthernet0/0/2]dhcp select global

[AR5]display ip pool

Pool-name : aa Pool-No : 0 Position : Local Status : Unlocked Gateway-0 : 192.168.1.129 Mask : 255.255.255.248 VPN instance : --

IP address Statistic Total :5 Used :2 Idle :3 Expired :0 Conflict :0 Disable :0 [AR5]

浮动静态路由

AR1端

[AR1]ip route-static 192.168.1.112 29 192.168.1.82

[AR1]ip route-static 192.168.1.120 29 192.168.1.90

AR5端

[AR5]ip route-static 192.168.1.96 29 192.168.1.81

[AR5]ip route-static 192.168.1.104 29 192.168.1.89

[AR1]ip route-static 192.168.1.112 29 192.168.1.82 preference  70

[AR5]ip route-static 192.168.1.96 29 192.168.1.81 preference  70

四、全网可达

下一跳

(1)AR4与AR2

AR4端

[AR4]ip route-static 192.168.1.40 29 192.168.1.1

[AR4]ip route-static 192.168.1.48 29 192.168.1.1

AR2端

[AR2]ip route-static 192.168.1.16 29 192.168.1.2

[AR2]ip route-static 192.168.1.24 29 192.168.1.2

(2)AR4与AR3

AR4端

[AR4]ip route-static 192.168.1.64 29 192.168.1.9

[AR4]ip route-static 192.168.1.72 29 192.168.1.9

AR3端

[AR3]ip route-static 192.168.1.16 29 192.168.1.10

[AR3]ip route-static 192.168.1.24 29 192.168.1.10

(3)AR3与AR1

AR1端

[AR1]ip route-static 192.168.1.64 29 192.168.1.58

[AR1]ip route-static 192.168.1.72 29 192.168.1.58

AR3端

[AR3]ip route-static 192.168.1.96 29 192.168.1.57

[AR3]ip route-static 192.168.1.104 29 192.168.1.57

(4)AR2与AR1

AR1端

[AR1]ip route-static 192.168.1.40 29 192.168.1.34

[AR1]ip route-static 192.168.1.48 29 192.168.1.34

AR2端

[AR2]ip route-static 192.168.1.96 29 192.168.1.33

[AR2]ip route-static 192.168.1.104 29 192.168.1.33

结果

(5)AR1与AR5

AR1端

[AR1]ip route-static 192.168.1.112 29 192.168.1.82

[AR1]ip route-static 192.168.1.120 29 192.168.1.90

AR5端

[AR5]ip route-static 192.168.1.96 29 192.168.1.81

[AR5]ip route-static 192.168.1.104 29 192.168.1.89

结果

(6)AR4与AR1

AR4端

[AR4]ip route-static 192.168.1.92 29 192.168.1.33

[AR4]ip route-static 192.168.1.96 29 192.168.1.33

[AR4]ip route-static 192.168.1.56 29 192.168.1.9

[AR4]ip route-static 192.168.1.104 29 192.168.1.57

AR1端

[AR1]ip route-static 192.168.1.0 29 192.168.1.34

[AR1]ip route-static 192.168.1.16 29 192.168.1.2

[AR1]ip route-static 192.168.1.8 29 192.168.1.58

[AR1]ip route-static 192.168.1.24 29 192.168.1.10

结果

(7)AR4与AR5

AR4端

[AR4]ip route-static 192.168.1.80 29 192.168.1.33

[AR4]ip route-static 192.168.1.112 29 192.168.1.82

[AR4]ip route-static 192.168.1.88 29 192.168.1.57

[AR4]ip route-static 192.168.1.120 29 192.168.1.90

AR5端

[AR5]ip route-static 192.168.1.32 29 192.168.1.81

[AR5]ip route-static 192.168.1.0 29 192.168.1.34

[AR5]ip route-static 192.168.1.16 29 192.168.1.2

[AR5]ip route-static 192.168.1.56 29 192.168.1.89

[AR5]ip route-static 192.168.1.8 29 192.168.1.58

[AR5]ip route-static 192.168.1.24 29 192.168.1.10

(8)AR2与AR3

AR2端

[AR2]ip route-static 192.168.1.56 29 192.168.1.33

[AR2]ip route-static 192.168.1.72 29 192.168.1.58

[AR2]ip route-static 192.168.1.8 29 192.168.1.2

[AR2]ip route-static 192.168.1.64 29 192.168.1.9

AR3端

[AR3]ip route-static 192.168.1.32 29 192.168.1.57

[AR3]ip route-static 192.168.1.48 29 192.168.1.34

[AR3]ip route-static 192.168.1.0 29 192.168.1.10

[AR3]ip route-static 192.168.1.40 29 192.168.1.1

(9)AR2与AR5

AR2端

[AR2]ip route-static 192.168.1.80 29 192.168.1.33

[AR2]ip route-static 192.168.1.112 29 192.168.1.82

[AR2]ip route-static 192.168.1.88 29 192.168.1.33

[AR2]ip route-static 192.168.1.120 29 192.168.1.90

AR5端

[AR5]ip route-static 192.168.1.48 29 192.168.1.34

[AR5]ip route-static 192.168.1.40 29 192.168.1.34

[AR5]ip route-static 192.168.1.32 29 192.168.1.89

(10)AR3与AR5

AR3端

[AR3]ip route-static 192.168.1.88 29 192.168.1.57

[AR3]ip route-static 192.168.1.80 29 192.168.1.5

[AR3]ip route-static 192.168.1.112 29 192.168.1.82

[AR3]ip route-static 192.168.1.120 29 192.168.1.90

AR5端

[AR5]ip route-static 192.168.1.56 29 192.168.1.81

[AR5]ip route-static 192.168.1.56 29 192.168.1.89

[AR5]ip route-static 192.168.1.64 29 192.168.1.58

[AR5]ip route-static 192.168.1.72 29 192.168.1.58

(11)AR1 2 3 4 5与pc端

[AR4]ip route-static 192.168.1.128 29 192.168.1.82

[AR4]ip route-static 192.168.1.128 29 192.168.1.90

结果测试

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值