Packet Tracer - 综合技能练习
地址表
设备 | 接口 | IP地址 | 子网掩码 | 默认网关 | VLAN关联 |
R1 | G0 / 0.1 | 192.168.99.1 | 255.255.255.0 | 不适用 | VLAN 99 |
G0 / 0.10 | 192.168.10.1 | 255.255.255.0 | 不适用 | VLAN 10 | |
G0 / 0.20 | 192.168.20.1 | 255.255.255.0 | 不适用 | VLAN 20 | |
S0 / 0/0 | 209.165.200.238 | 255.255.255.224 | 不适用 | 不适用 | |
S0 / 0/1 | 192.168.1.1 | 255.255.255.0 | 不适用 | 不适用 | |
R2 | G0 / 0.1 | 192.168.99.2 | 255.255.255.0 | 不适用 | VLAN 99 |
G0 / 0.10 | 192.168.10.2 | 255.255.255.0 | 不适用 | VLAN 10 | |
G0 / 0.20 | 192.168.20.2 | 255.255.255.0 | 不适用 | VLAN 20 | |
S0 / 0/0 | 192.168.1.2 | 255.255.255.0 | 不适用 | 不适用 | |
S0 / 0/1 | 209.165.202.158 | 255.255.255.224 | 不适用 | 不适用 | |
互联网服务提供商 | S0 / 0/0 | 209.165.200.225 | 255.255.255.224 | 不适用 | 不适用 |
S0 / 0/1 | 209.165.202.129 | 255.255.255.224 | 不适用 | 不适用 | |
网页 | 网卡 | 64.104.13.130 | 255.255.255.252 | 64.104.13.129 | 不适用 |
PC10A | 网卡 | 192.168.10.101 | 255.255.255.0 | 192.168.10.1 | VLAN 10 |
PC10B | 网卡 | 192.168.10.102 | 255.255.255.0 | 192.168.10.1 | VLAN 10 |
PC20A | 网卡 | 192.168.20.101 | 255.255.255.0 | 192.168.20.1 | VLAN 20 |
PC20B | 网卡 | 192.168.20.102 | 255.255.255.0 | 192.168.20.1 | VLAN 20 |
情境
在本活动中,将两个路由器配置为彼此通信。您负责配置子接口以与交换机通信。您将使用RIPv2配置VLAN间路由,使用VTP,中继的VLAN和具有快速PVST +的EtherChannel。PC和Internet设备都已预先配置。
要求
您负责配置路由器R1和R2以及交换机S1,S2,S3和S4。
注意:Packet Tracer不允许分配小于1的点值。由于此活动正在检查150多个项目,因此并非所有配置都被分配一个点值。单击检查结果 > 评估项目以验证您已正确配置所有项目。
VLAN间路由
在R1和R2上,启用并配置具有以下要求的子接口:
- 配置适当的dot1Q封装。
- 将VLAN 99配置为本地VLAN。
- 根据地址表配置子接口的IP地址。
路由
使用以下要求配置RIPv2:
- 不要发布连接到Internet的网络。
- 禁用自动汇总。
- 禁用每个子接口的RIP更新。
VTP和VLAN
- 将S1配置为VTP服务器。将所有其他交换机配置为VTP客户端。不允许他们创建VLAN。
- VTP域是CCNA。
- VTP密码为cisco123。
- 在S1上创建VLAN 10、20和99 。
- 为S1和S2配置以下静态端口:
- F0 / 1 – 9作为VLAN 10中的访问端口。
- F0 / 10 – 19作为VLAN 20中的访问端口。
- F0 / 20 – F24和G0 / 1 – 0/2作为VLAN 99的本地中继。
- 为S3和S4配置以下静态端口:
- F0 / 1 – 9作为VLAN 10中的访问端口。
- F0 / 10 – 20作为VLAN 20中的访问端口。
- F0 / 21 – F24和G0 / 1 – 0/2作为VLAN 99的本地中继。
以太网通道
- 所有以太通道均配置为LACP。
- 所有EtherChannel都静态配置为中继所有VLAN,包括VLAN 99作为本地VLAN。
- 使用下表配置适当的交换机端口以形成EtherChannel:
港口通道 | 设备:端口 | 设备:端口 |
1个 | S1:G0 / 1 – 2 | S3:G0 / 1 – 2 |
2 | S2:G0 / 1 – 2 | S4:G0 / 1 – 2 |
3 | S1:F0 / 23 – 24 | S2:F0 / 23 – 24 |
4 | S3:F0 / 23 – 24 | S4:F0 / 23 – 24 |
5 | S1:F0 / 21 – 22 | S4:F0 / 21 – 22 |
6 | S2:F0 / 21 – 22 | S3:F0 / 21 – 22 |
生成树
- 为所有交换机配置每VLAN快速生成树模式。
- 根据下表配置生成树优先级:
设备 | VLAN 10优先级 | VLAN 20优先级 |
S1 | 4096 | 8192 |
S2 | 8192 | 4096 |
S3 | 32768 | 32768 |
S4 | 32768 | 32768 |
连接性
- 所有PC都应该能够ping通Web和其他PC。
Router R1
!R1
enable
configure t
interface GigabitEthernet0/0
no shut
!
interface GigabitEthernet0/0.1
encapsulation dot1Q 99 native
ip address 192.168.99.1 255.255.255.0
!
interface GigabitEthernet0/0.10
encapsulation dot1Q 10
ip address 192.168.10.1 255.255.255.0
!
interface GigabitEthernet0/0.20
encapsulation dot1Q 20
ip address 192.168.20.1 255.255.255.0
!
router rip
version 2
network 192.168.1.0
network 192.168.10.0
network 192.168.20.0
network 192.168.99.0
passive-interface GigabitEthernet0/0.1
passive-interface GigabitEthernet0/0.10
passive-interface GigabitEthernet0/0.20
no auto-summary
end
copy run start
Router R2
!R2
enable
configure t
!
interface GigabitEthernet0/0
no shut
!
interface GigabitEthernet0/0.1
encapsulation dot1Q 99 native
ip address 192.168.99.2 255.255.255.0
!
interface GigabitEthernet0/0.10
encapsulation dot1Q 10
ip address 192.168.10.2 255.255.255.0
!
interface GigabitEthernet0/0.20
encapsulation dot1Q 20
ip address 192.168.20.2 255.255.255.0
!
router rip
version 2
network 192.168.1.0
network 192.168.10.0
network 192.168.20.0
network 192.168.99.0
passive-interface GigabitEthernet0/0.1
passive-interface GigabitEthernet0/0.10
passive-interface GigabitEthernet0/0.20
no auto-summary
end
copy run start
Switch S1
!S1
enable
configure t
vtp mode server
vtp domain CCNA
vtp password cisco123
vlan 10
vlan 20
vlan 99
exit
interface range f0/1 - 9
switchport mode access
switchport access vlan 10
inte range f0/10 - 19
switchport mode access
switchport access vlan 20
interface range f0/20 - 24, g0/1-2
switchport mode trunk
switchport trunk native vlan 99
!
interface range g0/1 - 2
channel-group 1 mode active
interface range f0/21 - 22
channel-group 5 mode active
interface range f0/23 - 24
channel-group 3 mode active
!
interface po 1
switchport mode trunk
switchport trunk native vlan 99
interface po 3
switchport mode trunk
switchport trunk native vlan 99
interface po 5
switchport mode trunk
switchport trunk native vlan 99
!
spanning-tree mode rapid-pvst
spanning-tree vlan 10 priority 4096
spanning-tree vlan 20 priority 8192
end
copy run start
Switch S2
!S2
enable
configure t
vtp mode client
vtp domain CCNA
vtp password cisco123
interface range f0/1 - 9
switchport mode access
switchport access vlan 10
inte range f0/10 - 19
switchport mode access
switchport access vlan 20
inte range f0/20 - 24, g0/1-2
switchport mode trunk
switchport trunk native vlan 99
!
interface range g0/1 - 2
channel-group 2 mode active
interface range f0/21 - 22
channel-group 6 mode active
interface range f0/23 - 24
channel-group 3 mode active
!
interface po 2
switchport mode trunk
switchport trunk native vlan 99
interface po 3
switchport mode trunk
switchport trunk native vlan 99
interface po 6
switchport mode trunk
switchport trunk native vlan 99
!
spanning-tree mode rapid-pvst
spanning-tree vlan 10 priority 8192
spanning-tree vlan 20 priority 4096
end
copy run start
Switch S3
!S3
enable
configure t
vtp mode client
vtp domain CCNA
vtp password cisco123
interface range f0/1 - 9
switchport mode access
switchport access vlan 10
inte range f0/10 - 20
switchport mode access
switchport access vlan 20
inte range f0/21 - 24, g0/1-2
switchport mode trunk
switchport trunk native vlan 99
!
interface range g0/1 - 2
channel-group 1 mode active
interface range f0/21 - 22
channel-group 6 mode active
interface range f0/23 - 24
channel-group 4 mode active
!
interface po 1
switchport mode trunk
switchport trunk native vlan 99
interface po 4
switchport mode trunk
switchport trunk native vlan 99
interface po 6
switchport mode trunk
switchport trunk native vlan 99
!
spanning-tree mode rapid-pvst
spanning-tree vlan 10 priority 32768
spanning-tree vlan 20 priority 32768
end
copy run start
Switch S4
!S4
enable
configure t
vtp mode client
vtp domain CCNA
vtp password cisco123
interface range f0/1 - 9
switchport mode access
switchport access vlan 10
inte range f0/10 - 20
switchport mode access
switchport access vlan 20
inte range f0/21 - 24, g0/1-2
switchport mode trunk
switchport trunk native vlan 99
!
interface range g0/1 - 2
channel-group 2 mode active
interface range f0/21 - 22
channel-group 5 mode active
interface range f0/23 - 24
channel-group 4 mode active
interface po 2
switchport mode trunk
switchport trunk native vlan 99
interface po 4
switchport mode trunk
switchport trunk native vlan 99
interface po 5
switchport mode trunk
switchport trunk native vlan 99
!
spanning-tree mode rapid-pvst
spanning-tree vlan 10 priority 32768
spanning-tree vlan 20 priority 32768
end
copy run start