Cisco CCNA 之 Packet Tracer 练习题系列
拓扑:
地址表 设备 | 接口 | IP 地址 | 子网掩码 | 默认网关 |
S1 | VLAN 56 | 192.168.56.11 | 255.255.255.0 | 不适用 |
S2 | VLAN 56 | 192.168.56.12 | 255.255.255.0 | 不适用 |
S3 | VLAN 56 | 192.168.56.13 | 255.255.255.0 | 不适用 |
PC1 | 网卡 | 192.168.10.21 | 255.255.255.0 | 192.168.10.1 |
PC2 | 网卡 | 192.168.20.22 | 255.255.255.0 | 192.168.20.1 |
PC3 | 网卡 | 192.168.30.23 | 255.255.255.0 | 192.168.30.1 |
PC4 | 网卡 | 192.168.10.24 | 255.255.255.0 | 192.168.10.1 |
PC5 | 网卡 | 192.168.20.25 | 255.255.255.0 | 192.168.20.1 |
PC6 | 网卡 | 192.168.30.26 | 255.255.255.0 | 192.168.30.1 |
端口 | 分配 | 网络 |
Fa0/1-0/5 | VLAN 56 – Management &Native | 192.168.56.0 /24 |
Fa0/6-0/10 | VLAN 30 - Guest(Default) | 192.168.30.0 /24 |
Fa0/11 - 0/17 | VLAN 10 - Faculty/Staff | 192.168.10.0 /24 |
Fa0/18 - 0/24 | VLAN 20 – Students | 192.168.20.0 /24 |
1、执行交换机上的基本配置任务
2、配置交换机主机名。
3、禁用 DNS 查找。
4、将执行模式口令配置为 class。
5、为控制台连接配置口令 cisco。
6、为 vty 连接配置口令 cisco
7、在 S1 上创建的 VLAN。
8、在交换机 S2 和 S3 上配置、命名和检验 VLAN。
9、在 S2 和 S3 上将交换机端口分配给 VLAN。
注意: Packet Tracer 将只对每个 VLAN 的第一个端口分配评分。
10、在每台交换机上配置管理 VLAN 56。
11、为所有三台交换机上的中继端口配置中继和本征 VLAN。检验中继配置情况。
答案:
S1
en
conf t
host S1
enable se cisco
line vty 0 4
pass cisco
login
exi
line con 0
pass cisco
login
exi
vlan 56
name Management&Native
exi
int vlan 56
ip add 192.168.56.11 255.255.255.0
no sh
exi
int range f0/1 - 2
sw mo tr
sw tr na vlan 56
end
w m
S2
en
conf t
host S2
enable se cisco
line vty 0 4
pass cisco
login
exi
line con 0
pass cisco
login
exi
vlan 56
name Management&Native
exi
vlan 30
name Guest(Default)
exi
vlan 10
name Faculty/Staff
exi
vlan 20
name Students
exi
int vlan 56
ip add 192.168.56.12 255.255.255.0
no sh
exi
int range f0/1 - 5
sw mo tr
sw tr na vlan 56
exi
int range f0/6 - 10
sw mo acc
sw acc vlan 30
exi
int range f0/11 - 17
sw mo acc
sw acc vlan 10
exi
int range f0/18 - 24
sw mo acc
sw acc vlan 20
end
w m
S3
en
conf t
host S3
enable se cisco
line vty 0 4
pass cisco
login
exi
line con 0
pass cisco
login
exi
vlan 56
name Management&Native
exi
vlan 30
name Guest(Default)
exi
vlan 10
name Faculty/Staff
exi
vlan 20
name Students
exi
int vlan 56
ip add 192.168.56.13 255.255.255.0
no sh
exi
int range f0/1 - 5
sw mo tr
sw tr na vlan 56
exi
int range f0/6 - 10
sw mo acc
sw acc vlan 30
exi
int range f0/11 - 17
sw mo acc
sw acc vlan 10
exi
int range f0/18 - 24
sw mo acc
sw acc vlan 20
end
w m
转载于:https://blog.51cto.com/jason8023/249213