
地址表
| 设备 | 接口 | IP 地址 | 子网掩码 | 默认网关 |
| ISP | S0/0/0 | 209.165.200.225 | 255.255.255.252 | 不适用 |
| Fa0/0 | 209.165.201.1 | 255.255.255.252 | 不适用 | |
| CENTRAL | S0/0/0 | 10.1.1.2 | 255.255.255.252 | 不适用 |
| S0/0/1 | 209.165.200.226 | 255.255.255.252 | 不适用 | |
| BRANCH | S0/0/0 | 10.1.1.1 | 255.255.255.252 | 不适用 |
| Fa0/0.1 | 172.17.1.1 | 255.255.255.0 | 不适用 | |
| Fa0/0.10 | 172.17.10.1 | 255.255.255.0 | 不适用 | |
| Fa0/0.20 | 172.17.20.1 | 255.255.255.0 | 不适用 | |
| Fa0/0.30 | 172.17.30.1 | 255.255.255.0 | 不适用 | |
| Fa0/0.99 | 172.17.99.1 | 255.255.255.0 | 不适用 | |
| S1 | VLAN 99 | 172.17.99.11 | 255.255.255.0 | 172.17.99.1 |
| S2 | VLAN 99 | 172.17.99.12 | 255.255.255.0 | 172.17.99.1 |
| S3 | VLAN 99 | 172.17.99.13 | 255.255.255.0 | 172.17.99.1 |
| PC1 | 网卡 | 172.17.10.21 | 255.255.255.0 | 172.17.10.1 |
| PC2 | 网卡 | 172.17.20.22 | 255.255.255.0 | 172.17.20.1 |
| PC3 | 网卡 | 172.17.30.23 | 255.255.255.0 | 172.17.30.1 |
| Web Server | 网卡 | 209.165.201.2 | 255.255.255.252 | 209.165.201.1 |
∙配置静态路由和默认路由
∙添加并连接 BRANCH 路由器
∙添加并连接交换机
∙添加并连接 PC
∙执行基本设备配置
∙配置 OSPF 路由
∙配置 STP
∙配置 VTP
∙配置 VLAN
∙检验端到端连通性
简介
本练习覆盖了您在前三门 Exploration 课程中所学的许多技能。这些技能包括构建网络,应用编址方案,配置路由、VLAN、STP 和 VTP 以及测试连通性。在继续学习之前您应先检查这些技能的掌握程度。此外,借此练习机会,您还可以复习有关 Packet Tracer 程序的基本知识。本课程各章都提供 Packet Tracer。您必须知道如何浏览 Packet Tracer 环境才能完成本课程的学习。如果您需要复习 Packet Tracer 的基本知识,请阅读Packet Tracer Help(帮助)菜单中提供的相关教程。
注:本练习包含 150 多道考题。因此, 每次输入命令后显示的完成比例不一定会上升。 用户执行口令是 cisco,执行口令是 class。
任务 1:配置静态路由和默认路由
步骤 1. 配置从 ISP 到 CENTRAL 的静态路由
使用拓扑图为 ISP 配置到所有网络的静态路由。每个网络都可以从 ISP 通过 S0/0/1 到达。使用送出接口参数配置到下列网络的静态路由:
∙10.1.1.0/30
∙172.17.1.0/24
∙172.17.10.0/24
∙172.17.20.0/24
∙172.17.30.0/24
∙172.17.99.0/24
ISP配置命令
configure terminal
ip route 10.1.1.0 255.255.255.252 s0/0/1
ip route 172.17.1.0 255.255.255.0 s0/0/1
ip route 172.17.10.0 255.255.255.0 s0/0/1
ip route 172.17.20.0 255.255.255.0 s0/0/1
ip route 172.17.30.0 255.255.255.0 s0/0/1
ip route 172.17.99.0 255.255.255.0 s0/0/1
end
copy running-config startup-config
步骤 2. 配置从 CENTRAL 到 ISP 的默认路由。
在 CENTRAL 上使用送出接口参数配置默认路由,将所有默认流量发送到 ISP。
CENTRAL配置命令
configure terminal
ip route 0.0.0.0 0.0.0.0 s0/0/1
end
步骤 3. 测试与 Web Server 的连通性。
CENTRAL 现在应能成功 ping 通 Web Server (209.165.201.2)。
步骤 4. 检查结果。
完成比例应为 4%。如果并非如此,请单击 Check Results(检查结果)查看尚未完成哪些必要部分。
任务 2:添加并连接 BRANCH 路由器
步骤 1. 添加 BRANCH 路由器。
单击 Custom Made Devices(定制设备),然后将一台 1841 路由器添加到拓扑中。使用 Config(配置)选项卡,将 Display Name(显示名称) 和 Hostname(主机名)都改为 BRANCH。Display Name(显示名称)区分大小写。目前不要配置路由器。
步骤 2. 将 BRANCH 连接到 CENTRAL。
∙将 BRANCH 连接到 CENTRAL。
∙配置 BRANCH 和 CENTRAL 之间的链路。
∙时钟频率用 000 bps
BRANCH配置命令
configure terminal
interface s0/0/0
ip address 10.1.1.1 255.255.255.252
clock rate 000
no shutdown
end
步骤 3. 检查结果。
完成比例应为 8%。如果并非如此,请单击 Check Results(检查结果)查看尚未完成哪些必要部分。
任务 3:添加并连接交换机
位置、交换机名称和接口请参照拓扑图。
步骤 1. 使用 2960 型添加 S1、S2 和 S3 交换机。
步骤 2. 将 S1 连接到 BRANCH。
步骤 3. 将 S1 连接到 S2。
步骤 4. 将 S1 连接到 S3。
步骤 5. 将 S2 连接到 S3。
步骤 6. 检查结果。
完成比例应为 27%。如果并非如此,请单击 Check Results(检查结果)查看尚未完成哪些必要部分。
任务 4:添加并连接 PC
请使用拓扑图和地址表中指定的接口。
步骤 1. 添加 PC1、PC2 和 PC3。
步骤 2. 将 PC1、PC2 和 PC3 连接到 S2。
步骤 3. 配置 PC。
步骤 4. 检查结果。
完成比例应为 41%。如果并非如此,请单击 Check Results(检查结果)查看尚未完成哪些必要部分。
任务 5:执行基本设备配置
步骤 1. 在 BRANCH、S1、S2 和 S3 上配置基本命令。
基本配置命令应包括主机名、执行模式口令、标语、控制台和 vty 线路。
BRANCH配置命令
configure terminal
banner motd #
AUTHORIZED ACCESS ONLY#
hostname BRANCH
enable secret class
line console 0
password cisco
login
exit
line vty 0 4
password cisco
login
end
S1配置命令
configure terminal
banner motd #
AUTHORIZED ACCESS ONLY#
hostname S1
enable secret class
line console 0
password cisco
login
exit
line vty 0 4
password cisco
login
end
S2配置命令
configure terminal
banner motd #
AUTHORIZED ACCESS ONLY#
hostname S2
enable secret class
line console 0
password cisco
login
exit
line vty 0 4
password cisco
login
end
S3配置命令
configure terminal
banner motd #
AUTHORIZED ACCESS ONLY#
hostname S3
enable secret class
line console 0
password cisco
login
exit
ling vty 0 4
password cisco
login
end
步骤 2. 在 BRANCH 上配置快速以太网子接口。
不要忘记为每个子接口配置 802.1q 封装和 VLAN 设置。每个子接口地址的第三组二进制八位数与 VLAN 编号对应。例如,子接口 Fa0/0.30 应使用 IP 地址 172.17.30.1,属于 VLAN 30。 VLAN 99 为本征 VLAN。
BRANCH配置命令
configure terminal
interface f0/0
no shutdown
end
configure terminal
interface f0/0.1
encapsulation dot1q 1
ip address 172.17.1.1 255.255.255.0
no shutdown
exit
interface f0/0.10
encapsulation dot1q 10
ip address 172.17.10.1 255.255.255.0
no shutdown
exit
interface f0/0.20
encapsulation dot1q 20
ip address 172.17.20.1 255.255.255.0
no shutdown
exit
interface f0/0.30
encapsulation dot1q 30
ip address 172.17.30.1 255.255.255.0
no shutdown
exit
interface f0/0.99
encapsulation dot1q 99 native
ip address 172.17.99.1 255.255.255.0
no shutdown
end
步骤 3. 配置交换机。
∙配置 VLAN 99 接口。
∙配置默认网关。
S1配置命令
configure terminal
interface vlan 99
ip add 172.17.99.11 255.255.255.0
no shutdown
exit
ip default-gateway 172.17.99.1
end
S2配置命令
configure terminal
interface vlan 99
ip add 172.17.99.12 255.255.255.0
no shutdown
exit
ip default-gateway 172.17.99.1
end
S3配置命令
configure terminal
interface vlan 99
ip add 172.17.99.13 255.255.255.0
no shutdown
exit
ip default-gateway 172.17.99.1
end
步骤 4. 检查结果。
完成比例应为 59%。如果并非如此,请单击 Check Results(检查结果)查看尚未完成哪些必要部分。
任务 6:配置 OSPF 路由
步骤 1. 在 CENTRAL 上配置 OSPF 并传播默认路由。
∙使用进程 ID 1 配置 OSPF。
∙使用 OSPF 区域 0。
∙仅添加与 BRANCH 共享的网络。
∙向 OSPF 相邻设备传播默认路由。
步骤 2. 在 BRANCH 上配置 OSPF。
∙使用进程 ID 1 配置 OSPF。
∙使用 OSPF 区域 0。
∙添加通过 BRANCH 路由的所有网络。
CENTRAL配置命令
configure terminal
router ospf 1
network 10.1.1.0 0.0.0.3 area 0
default-information originate
end
BRANCH配置命令
configure terminal
router ospf 1
network 10.1.1.0 0.0.0.3 area 0
network 172.17.1.0 0.0.0.255 area 0
network 172.17.10.0 0.0.0.255 area 0
network 172.17.20.0 0.0.0.255 area 0
network 172.17.30.0 0.0.0.255 area 0
network 172.17.99.0 0.0.0.255 area 0
end
步骤 3. 在 CENTRAL 和 BRANCH 的适当接口上禁用 OSPF 更新。
在所有 LAN 接口和接入 ISP 的接口上禁用 OSPF 更新。
CENTRAL配置命令
configure terminal
router ospf 1
passive-interface s0/0/1
end
copy running-config startup-config
BRANCH配置命令
configure terminal
router ospf 1
passive-interface FastEthernet0/0.1
passive-interface FastEthernet0/0.10
passive-interface FastEthernet0/0.20
passive-interface FastEthernet0/0.30
passive-interface FastEthernet0/0.99
end
copy running-config startup-config
步骤 4. 测试连通性。
BRANCH 应该能成功 ping 通 Web Server (209.165.201.2)
步骤 5. 检查结果。
完成比例应为 69%。如果并非如此,请单击 Check Results(检查结果)查看尚未完成哪些必要部分。
任务 7:配置 STP
步骤 1:确保 S1 成为根桥。
将优先级设置为 4096。
S1配置命令
configure terminal
spanning-tree vlan 1 priority 4096
spanning-tree vlan 10 priority 4096
spanning-tree vlan 20 priority 4096
spanning-tree vlan 30 priority 4096
spanning-tree vlan 99 priority 4096
步骤 2:检查 S1 是否根桥。
步骤 3. 检查结果。
完成比例应为 72%。如果并非如此,请单击 Check Results(检查结果)查看尚未完成哪些必要部分。
任务 8:配置 VTP
步骤 1:在三台交换机上逐一配置 VTP 模式。
将 S1 配置为服务器模式。将 S2 和 S3 配置为客户端模式。
S1配置命令
configure terminal
vtp domain CCNA
vtp password cisco
end
S2配置命令
configure terminal
vtp mode client
vtp domain CCNA
vtp password cisco
end
configure terminal
vtp mode client
vtp domain CCNA
vtp password cisco
end
步骤 2:在三台交换机上逐一配置 VTP 域名。
使用 CCNA 作为 VTP 域名。
步骤 3:在三台交换机上逐一配置 VTP 域口令。
使用 cisco 作为 VTP 域口令。
步骤 4. 检查结果。
完成比例应为 77%。如果并非如此,请单击 Check Results(检查结果)查看尚未完成哪些必要部分。
任务 9:配置中继
步骤 1:在 S1、S2 和 S3 上配置中继。
将适当的接口配置为中继模式并指定 VLAN 99 为本征 VLAN。
S1配置命令
configure terminal
interface range f0/1 - 5
switchport mode trunk
switchport native vlan 99
end
S2配置命令
configure terminal
interface range f0/1 - 4
switchport mode trunk
switchport native vlan 99
end
S2配置命令
configure terminal
interface range f0/1 - 4
switchport mode trunk
switchport native vlan 99
end
步骤 2. 检查结果。
完成比例应为 94%。如果并非如此,请单击 Check Results(检查结果)查看尚未完成哪些必要部分。
任务 10:配置 VLAN
步骤 1. 为 S1 配置 VLAN。
VLAN 名称区分大小写。根据以下规定添加四个 VLAN 并为其命名:
∙VLAN 10 - Faculty/Staff
∙VLAN 20 - Students
∙VLAN 30 - Guest(Default)
∙VLAN 99 - Management&Native
S1配置命令
configure terminal
vlan 1
name Control/Traffic
exit
vlan 10
name Faculty/Staff
exit
vlan 20
name Students
exit
vlan 30
name Guest(Default)
exit
vlan 99
name Management&Native
end
configure terminal
interface range f0/6 - 10
switchport mode access
switchport access vlan 30
exit
interface range f0/11 - 17
switchport mode access
switchport access vlan 10
exit
interface range f0/18 - 24
switchport mode access
switchport access vlan 20
end
copy running-config startup-config
步骤 2. 检查 S2 和 S3 是否已收到 S1 传播的 VLAN 配置。
步骤 3. 将连接到 PC 的 S2 端口配置为接入模式,并将每个端口分配到相应的 VLAN。
S2配置命令
configure terminal
interface range f0/5 - 10
switchport mode access
switchport access vlan 30
exit
interface range f0/11 - 17
switchport mode access
switchport access vlan 10
exit
interface range f0/18 - 24
switchport mode access
switchport access vlan 20
end
copy running-conifg startup-config
S3配置命令
configure terminal
interface range f0/5 - 10
switchport mode access
switchport access vlan 30
exit
interface range f0/11 - 17
switchport mode access
switchport access vlan 10
exit
interface range f0/18 - 24
switchport mode access
switchport access vlan 20
end
copy running-config startup-config
步骤 4. 检查结果。
完成比例应为 100%。如果并非如此,请单击 Check Results(检查结果)查看尚未完成哪些必要部分。
任务 11:检验端到端连通性
步骤 1. 检查 PC1、PC2 和 PC3 能否彼此 ping 通。
步骤 2. 检查 PC1、PC2 和 PC3 能否 ping 通 Web Server。
