Packet Tracer(第四期)---3点到点连接(完)

点到点连接–PKA下载地址

拓扑图

在这里插入图片描述

地址分配表

在这里插入图片描述
背景

通过本练习,您可以实践各种技能,包括配置 VLAN、采用 CHAP 的 PPP、静态路由和默认路由、使用 IPv4 和 IPv6。由于评分元素的增多,您可以单击“查看结果”和“评估项目”查看是否正确输入评分命令。请使用 cisco 和 class 密码来访问路由器和交换机的 CLI 的特权 EXEC 模式。

要求

寻址

  • · 编址方案使用 192.168.1.0/24 地址空间。其他地址空间可用于 VLAN 15 和 VLAN 1 之间。VLAN
    25 需要为 50 台主机提供足够的地址。确定子网和并完成下面的子网表。

在这里插入图片描述

  • · 将以下地址分配到 VLAN 25 完成地址分配表:
    -R2 G0/0.25 - 第一个 IPv4 地址
    -PC25 - 第二个 IPv4 地址
    -L25 - 最后一个 IPv4 地址
  • · 在所需的终端设备上配置 IPv4 编址。
  • · 在 R2 上,创建并将 IPv4 和 IPv6 编址应用到 G0/0.25 子接口。

VLAN

  • · 在 S1 上,创建 VLAN 86 并将其命名为BlackHole
  • · 按照下列要求在静态模式中配置 S1 端口:
    -F0/1 是 VLAN 99 的本征 TRUNK。
    -F0/7 - F0/18 为 VLAN 15 的接入端口。
    -F0/19 - F0/24 为 VLAN 25 的接入端口。
    -G1/1 - 2 和 F0/2 - F0/6 未使用。它们应得到适当保护并分配给 BlackHole VLAN。
  • · 在 R2 上,配置 VLAN 间路由。VLAN 99 为本征 VLAN。

PPP

  • · 为共享链路将 R1 和 R2 配置为使用采用 CHAP 的 PPP。CHAP 的密码为 cisco。

路由

  • · 在 R1 上,使用适当的送出接口配置 IPv4 和 IPv6 默认路由。
  • · 在 R2 上,使用合适的送出接口配置 IPv6 默认路由。
  • · 根据以下要求配置 IPv4 OSPF:
    -使用进程 ID 1。
    -路由器 R1 和 R2 位于区域 0 中。
    -R1 使用路由器 ID 1.1.1.1。
    -R2 使用路由器 ID 2.2.2.2。
    -通告特定子网。
    -在 R1 上,传播创建的 IPv4 默认路由。
  • · 根据以下要求配置 IPv6 OSPF:
    -使用进程 ID 1。
    -路由器 R1 和 R2 位于区域 0 中。
    -在 R1 和 R2 的合适接口上配置 OSPF。
    -R1 使用路由器 ID 1.1.1.1。
    -R2 使用路由器 ID 2.2.2.2。

连接

  • · 所有设备都应能 ping 通 Web 服务器。

交换机S1配置

S1(config)#vlan 86
S1(config-vlan)#name BlackHole
S1(config-vlan)#int rang f0/7-18
S1(config-if-range)#sw mod acc
S1(config-if-range)#sw acc vl 15

S1(config-if-range)#int rang f0/19-24
S1(config-if-range)#sw mod acc
S1(config-if-range)#sw acc vl 25
S1(config-if-range)#int f0/1
S1(config-if)#sw mod tr
S1(config-if)#sw tr native vl 99

S1(config)#int rang g0/1-2,f0/2-6
S1(config-if-range)#sw mod acc
S1(config-if-range)#sw acc vl 86
S1(config-if-range)#sh

R1配置

R1(config)#router ospf 1
R1(config-router)#router-id 1.1.1.1
R1(config-router)#net 10.1.1.1 0.0.0.3 area 0
R1(config-router)#net 209.165.200.225 0.0.0.3 area 0
R1(config-router)#default-information originate
R1(config-router)#ipv6 unicast-routing
R1(config)#ipv6 router ospf 1
R1(config)#Ipv6 route ::/0 s0/0/1
R1(config)#ip route 0.0.0.0 0.0.0.0 Serial0/0/1

R1(config)#int s0/0/0
R1(config-if)#encapsulation ppp
R1(config-if)#ppp auth chap
R1(config-if)#user R2 pass cisco

R1(config)#int s0/0/0
R1(config-if)#ipv6 ospf 1 area 0

R2配置

R2(config)#router ospf 1
R2(config-router)#router-id 2.2.2.2
R2(config-router)#net 192.168.1.192 0.0.0.31 area 0
R2(config-router)#net 192.168.1.0 0.0.0.127 area 0
R2(config-router)#net 192.168.1.128 0.0.0.63 area 0
R2(config-router)#net 192.168.1.224 0.0.0.31 area 0
R2(config-router)#net 10.1.1.0 0.0.0.3 area 0

R2(config-router)#int g0/0.1
R2(config-subif)#en dot1q 1
R2(config-subif)#ip add 192.168.1.193 255.255.255.224
R2(config-subif)#ipv6 ospf 1 area 0

R2(config-subif)#int g0/0.15
R2(config-subif)#en dot1q 15
R2(config-subif)#ip add 192.168.1.1 255.255.255.128
R2(config-subif)#ipv6 ospf 1 area 0

R2(config-subif)#int g0/0.25
R2(config-subif)#en dot1q 25
R2(config-subif)#ip add 192.168.1.129 255.255.255.192
R2(config-subif)#ipv6 ospf 1 area 0

R2(config-subif)#int g0/0.99
R2(config-subif)#en dot1q 99 native
R2(config-subif)#ip add 192.168.1.225 255.255.255.224
R2(config-subif)#ipv6 ospf 1 area 0

R2(config-subif)#router ospf 1
R2(config-router)#default-information originate
R2(config-router)#ipv6 unicast-routing
R2(config)#ipv6 router ospf 1
R2(config-rtr)#Ipv6 route ::/0 s0/0/0
R2(config)#int g0/0
R2(config-if)#sh
R2(config-if)#int s0/0/0
R2(config-if)#encapsulation ppp
R2(config-if)#ppp authentication chap 
R2(config-if)#user R1 pass cisco

R2(config-if)#int g0/0
R2(config-if)#no sh
R2(config)#int g0/0.25
R2(config-subif)#ipv6 add 2001:DB8:A:25::1/64

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_42530422/article/details/106139466