内容正文:
某工厂共三幢楼,分别是行政楼,车间1,车间2,机房核心交换机及服务器放置在网络中心,整个网络通过NAT上网。接入交换机和核心交换机间为增加带宽,采用聚合方式。拓扑图如图1
接口IP 地址如表1
接口名称
地址
Fa0/1
10.10.10.2/30
Se0/0/0
202.189.127.106/24
Se0/0/0
202.189.127.107/24
Fa0/1
10.10.10.1/30
Fa0/11
192.168.40.254/254
Vlan10
192.168.10.254/24
Vlan20
192.168.20.254/24
Vlan30
192.168.30.254/24
Vlan1
192.168.1.1/24
Vlan 10
Vlan 20
Vlan 30
Vlan 1
192.168.1.254/24
Vlan 10
Vlan 20
Vlan 30
Vlan 1
192.168.1.253/24
Vlan 10
Vlan 20
Vlan 30
Vlan 1
192.168.1.252/24
Pc0
192.168.10.1/24
Pc1
192.168.20.1/24
Pc2
192.168.30.1/24
Server
192.168.40.1/24
1.网络设备连接(每题1分,共3分)
根据网络拓扑图,在PT网络模拟器中搭建网络,正确连线并回答以下问题。
(1)ISP与R1之间的连线类型为( )。
A.交叉线 B.直连线
C.串口线 D.console线
(2)R1与CORE之间的连线类型为( )。
A.交叉线 B.直连线
C.串口线 D.console线
(3)core与server之间的连线类型为( )。
A.交叉线 B.直连线
C.串口线 D.console线
2. 网络设备配置,在Cisco Packet Tracer下调试各设备,并完成下面填空,要求必须填完整
的命令。(每空格1分,共45分)
(1) 交换机的配置
Chejian 1:
Switch> \\进入特权模式
Switch# \\进入全局模式
Switch(config)# \\修改主机名xingzhenglou
xingzhenglou(config)# \\创建vlan 10
xingzhenglou(config-vlan)# \\ 将vlan 10 命名为 xz
xingzhenglou(config-vlan)#exit
……
xingzhenglou(config)#
\\进入端口fa0/11 fa0/15-fa0/16
xingzhenglou(config-if-range)# \\将端口划入vlan 10
xingzhenglou(config-if-range)#exit
xingzhenglou(config)# \\进入端口 fa0/17-18
xingzhenglou(config-if-range)# \\将端口划入 vlan 20
xingzhenglou(config-if-range)#exit
……
xingzhenglou(config)# \\创建聚合口1
xingzhenglou(config-if)# \\端口模式为中继模式
xingzhenglou(config-if)#exit
xingzhenglou(config)# \\进入端口fa0/1-2
xingzhenglou(config-if-range)# \\将端口加入聚合口1 模式手动
xingzhenglou(config-if-range)# \\中继口允许所有vlan 通过
xingzhenglou(config-if-range)#exit
xingzhenglou(config)# \\进入vlan 1 的接口模式
xingzhenglou(config-if)# \\配置ip地址
xingzhenglou(config-if)# \\激活接口
xingzhenglou(config-if)#exit
xingzhenglou(config)# \\创建本地用户名xzadmin 密码123456
xingzhenglou(config)# \\配置缺省网关
xingzhenglou(config)# \\配置远程登录5用户
xingzhenglou(config-line)# \\本地用户名和密码验证
xingzhenglou(config-line)#exit
xingzhenglou(config)# \\特权加强密码654321
Core:
……
core(config-if)# \\配置vlan10 地址
core(config-if)#i \\配置vlan20 地址
……
core(config-if)#exit
core(config)# \\开启三层功能
core(config)# \\创建聚合口1
core(config-if)# \\中继口封装dot1q协议
core(config-if)# \\端口模式为中继模式
core(config-if)#exit
core(config)# \\进入端口fa0/2-3
core(config-if-range)# \\将端口加入聚合口1 模式手动
core(config-if-range)#exit
core(config)# \\进入端口fa0/11
core(config-if)# \\将交换机口转换成路由口
core(config-if)# \\配置ip
core(config-if)#exit
core(config)# \\配置默认路由,出口接口fa0/1
core(config)#exit
core(config)#
\\扩展列表100 允许 pc0 访问server的web服务
core(config)#
\\扩展列表100 禁止 pc0 访问server的ftp服务
core(config)#
\\扩展列表100 允许任意
core(config)# \\进入vlan 10的接口模式
core(config-if)# \\把扩展列表应用在in的方向
core(config-if)#exit
R1:
……
R1(config)#
\\添加到vlan 10的静态路由,用下一跳地址
……
R1(config)# \\标准列表1允许 192.168.10.0/24
R1(config)# \\标准列表1允许 192.168.20.0/24
R1(config)# \\标准列表1允许 192.168.30.0/24
……
R1(config-if)# \\设置端口为nat的内侧
……
R1(config-if)# \\设置端口为nat的外侧
R1(config-if)#exit
R1(config)#
\\创建地地池123,202.189.127.220-202.189.127.220/24
R1(config)# \\列表1 转换为地址池123 地址
学科网(北京)股份有限公司
$$
1.网络设备连接(每题1分,共3分)
根据网络拓扑图,在PT网络模拟器中搭建网络,正确连线并回答以下问题。
(1)C(2)B(3)B
2. 网络设备配置,在Cisco Packet Tracer下调试各设备,并完成下面填空,要求必须填完整
的命令。(每空格1分,共47分)
(1) Enable
(2) configure terminal
(3) hostname xingzhenglou
(4) vlan 10
(5) name xz
(6) interface range fastethernet 0/11,fastethernet0/15-16
(7) switchport access vlan 10
(8) interface range fastethernet0/17-18
(9) switchport access vlan 20
(10) interface port-channel 1
(11) switchport mode trunk
(12) interface range fastethernet 0/1-2
(13) channel-group 1 mode on
(14) switchport trunk allowed vlan all
(15) interface vlan 1
(16) ip address 192.168.1.254 255.255.255.0
(17) no shutdown
(18) username xzadmin password 123456
(19) ip default-gateway 192.168.1.1
(20) line vty 0 4
(21) login local
(22) enable secret 654321
(23) ip address 192.168.10.254 255.255.255.0
(24) ip address 192.168.20.254 255.255.255.0
(25) ip routing
(26) interface port-channel 1
(27) switchport trunk encapsulation dot1q
(28) switchport mode trunk
(29) interface range fastethernet 0/2-3
(30) channel-group 1 mode on
(31) interface fastethernet 0/11
(32) no switchport
(33) ip address 192.168.40.254 255.255.255.0
(34) ip route 0.0.0.0 0.0.0.0 fastethernet 0/1
(35) access-list 100 permit tcp host 192.168.10.1 host 192.168.40.1 eq www
(36) access-list 100 deny tcp host 192.168.10.1 host 192.168.40.1 eq ftp
(37) access-list 100 permit ip any any
(38) interface vlan 10
(39) ip access-group 100 in
(40) ip route 192.168.10.0 255.255.255.0 10.10.10.1
(41) access-list 1 permit 192.168.10.0 0.0.0.255
(42) access-list 1 permit 192.168.20.0 0.0.0.255
(43) access-list 1 permit 192.168.30.0 0.0.0.255
(44) ip nat inside
(45) ip nat outside
(46) ip nat pool 123 202.189.127.200 202.189.127.220 netmask 255.255.255.0
(47) ip nat inside source list 1 pool 123
学科网(北京)股份有限公司
$$