Featured image of post 网络规划与实施模块3:Cisco Packet Tracer 自动化评分环境完整 CLI 配置教程

网络规划与实施模块3:Cisco Packet Tracer 自动化评分环境完整 CLI 配置教程

这是模块 3《网络规划与实施》(Cisco Packet Tracer 自动化评分环境)的完整 CLI 配置教程。 请在 Packet Tracer 中依次双击设备,进入 CLI 标签页粘贴执行对应的命令。配置完成后无需关闭 PKA 文件。 任务 1:接口初始化与基础 IP 配置 在 Packet Tracer 中,DCE 串口线条通常带有“小表盘”标记。若不确定,对所有 Serial 接口均补全 clock rate 64000 即可(非 DCE 端会自动忽略,不影响得分)。

  1. 路由器 R0 (ISP) enable configure terminal interface Serial0/1/0 ip address 100.1.1.1 255.255.255.252 clock rate 64000 no shutdown exit interface FastEthernet0/0 ip address 209.165.201.1 255.255.255.0 no shutdown exit

  2. 路由器 R1 (出口路由器) enable configure terminal interface Serial0/1/0 ip address 100.1.1.2 255.255.255.252 clock rate 64000 no shutdown exit interface Serial0/1/1 ip address 172.16.0.1 255.255.255.252 clock rate 64000 no shutdown exit interface GigabitEthernet0/0/0 ip address 172.16.1.1 255.255.255.248 no shutdown exit

  3. 路由器 R2 enable configure terminal interface Serial0/1/0 ip address 172.16.0.2 255.255.255.252 clock rate 64000 no shutdown exit interface Serial0/1/1 ip address 172.16.2.1 255.255.255.252 clock rate 64000 no shutdown exit interface Serial0/2/0 ip address 172.16.3.1 255.255.255.252 clock rate 64000 no shutdown exit

  4. 路由器 R11 enable configure terminal interface GigabitEthernet0/0/1 ip address 172.16.1.2 255.255.255.248 no shutdown exit interface GigabitEthernet0/0/0 ip address 10.1.10.254 255.255.255.0 no shutdown exit

  5. 路由器 R12 enable configure terminal interface GigabitEthernet0/0/1 ip address 172.16.1.3 255.255.255.248 no shutdown exit interface GigabitEthernet0/0/0 ip address 10.1.20.254 255.255.255.0 no shutdown exit

  6. 路由器 R21 enable configure terminal interface Serial0/1/0 ip address 172.16.2.2 255.255.255.252 clock rate 64000 no shutdown exit interface Serial0/1/1 ip address 172.16.4.1 255.255.255.252 clock rate 64000 no shutdown exit interface GigabitEthernet0/0/0 ip address 10.1.30.254 255.255.255.0 no shutdown exit

  7. 路由器 R22 enable configure terminal interface Serial0/1/0 ip address 172.16.3.2 255.255.255.252 clock rate 64000 no shutdown exit interface Serial0/1/1 ip address 172.16.4.2 255.255.255.252 clock rate 64000 no shutdown exit interface GigabitEthernet0/0/0 ip address 10.1.40.254 255.255.255.0 no shutdown exit

  8. 终端静态 IP 手动配置 (图界面操作)

  • Server-Web:IP 209.165.201.10 / 掩码 255.255.255.0 / 网关 209.165.201.1
  • PC1:IP 10.1.10.1 / 掩码 255.255.255.0 / 网关 10.1.10.254
  • Server3:IP 10.1.10.100 / 掩码 255.255.255.0 / 网关 10.1.10.254
  • PC2:IP 10.1.20.1 / 掩码 255.255.255.0 / 网关 10.1.20.254
  • PC4:IP 10.1.30.1 / 掩码 255.255.255.0 / 网关 10.1.30.254 任务 2:默认路由配置 在 R1 上配置默认指向 ISP 路由器 R0: router1# configure terminal ip route 0.0.0.0 0.0.0.0 100.1.1.1

任务 3:左侧区域 RIPv2 路由配置

  1. 路由器 R1 configure terminal router rip version 2 no auto-summary network 172.16.0.0 default-information originate exit

  2. 路由器 R11 configure terminal router rip version 2 no auto-summary network 172.16.0.0 network 10.0.0.0 exit

  3. 路由器 R12 configure terminal router rip version 2 no auto-summary network 172.16.0.0 network 10.0.0.0 exit

任务 4:右侧区域 OSPF 单区域配置

  1. 路由器 R1 configure terminal router ospf 2026 router-id 1.1.1.1 network 172.16.0.0 0.0.0.3 area 0 default-information originate exit

  2. 路由器 R2 configure terminal router ospf 2026 router-id 2.2.2.2 network 172.16.0.0 0.0.3.255 area 0 exit

  3. 路由器 R21 configure terminal router ospf 2026 router-id 21.21.21.21 network 172.16.0.0 0.0.255.255 area 0 network 10.1.30.0 0.0.0.255 area 0 exit

  4. 路由器 R22 configure terminal router ospf 2026 router-id 22.22.22.22 network 172.16.0.0 0.0.255.255 area 0 network 10.1.40.0 0.0.0.255 area 0 exit

任务 5:配置重分发(R1 部署双向重分发) 在 R1 上将 RIP 注入 OSPF,同时将 OSPF 注入 RIP: configure terminal router rip redistribute ospf 2026 metric 1 exit

router ospf 2026 redistribute rip subnets exit

任务 6:互联网接入 NAT + 简单权限控制(在 R1 配置)

  1. 规则 1 ACL:拒绝 Server3,允许其他内网网段 configure terminal access-list 1 deny host 10.1.10.100 access-list 1 permit any

  2. 接口标注与 PAT 复用配置 interface Serial0/1/0 ip nat outside exit interface Serial0/1/1 ip nat inside exit interface GigabitEthernet0/0/0 ip nat inside exit ip nat inside source list 1 interface Serial0/1/0 overload

任务 7:无线网段 DHCP + AP 无线配置

  1. 在 R22 路由器上配置 DHCP 地址池 configure terminal ip dhcp excluded-address 10.1.40.1 10.1.40.50

ip dhcp pool wlan-pool network 10.1.40.0 255.255.255.0 default-router 10.1.40.254 dns-server 8.8.8.8 exit

  1. 无线 AP(AccessPoint-PT)图形界面配置
  • 点击 AP 设备 -> 选择 Config 标签页 -> 点击 Port 1:
    • SSID:Office-WiFi
    • WPA2-PSK PSK Passphrase:Cisco1234
    • Encryption:选择 AES
  1. 无线笔记本(PC5)网络连接设置
  • 双击 Laptop PC5 -> Physical 标签页:先关闭电源开关,将默认网卡拔出,替换为无线网卡 WPC300N,重新开机。
  • 进入 Desktop 标签页 -> 打开 PC Wireless:
    • 点击 Connect -> 点击 Refresh 刷新网络。
    • 选中 Office-WiFi -> 点击 Connect -> 输入密码 Cisco1234 完成连接。
  • 进入 Desktop -> IP Configuration,确认成功自动获取 10.1.40.X 网段的 IP 地址。

本文由 BOSH 的博客助手 HerMes 整理 📝

原文链接:本次内容由用户提供

热爱生活 学无止境
使用 Hugo 构建
主题 StackJimmy 设计