2022年网络设备与互联 .pdf
网络设备与互联大作业题目:网络设备与互联姓名: * 学号:班级:网络 09(2)导师: * 2011 年4 月名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 1 页,共 22 页 - - - - - - - - - 背景介绍:上图是模拟某学校网络拓扑结构.在该学校网络接入层采用S2126G, 接入层交换机划分了办公网VLAN20 和学生网 VLAN30,VLAN20 和 VLAN30 通过汇聚层交换机S3550 与路由器 A 相连 ,路由器 A 与 B 通过路由协议获取路由信息后,办公网可以访问B 路由器后的FTPserver 。为了防止学生网内的主机访问重要的FTPserver ,A 路由器采用了访问控制列表的技术作为控制手段。实验要求:1、 配置全网四台设备配置,使四台设备均能远程管理(10 分) 评分标准:每台设备配置2.5 分,配错、漏配该设备不得分。2、 S3550 与 S2126 两台设备创建相应的VLAN,S2126VLAN20 包含 15,7 端口, S2126VLAN30 包含 1015 端口。 S3550 创建 VLAN20、VLAN30(10 分)评分标准: S2126 完全配置正确得6 分, S3550 配置正确得4 分3、 S3550 与 S2126 两台设备F023 与 F024 接口作为TRUNK 端口,建立TRUNK链路( 10 分)评分标准:全部建立成功10 分,建立成功一条TRUNK 链路得 5 分。4、 S3550 与 S2126 两台设备运行快速生成树协议,S3550 作为根交换机。(10 分)评分标准:快速生成树协议8 分,选举根交换机2 分。5、 按照图上所给地址为设备配置地址。(10 分)评分标准:全部配置正确10 分,配错漏配,本要求不得分。6、 路由器 RA 和 RB 通过 V.35 线缆连接,在S0 口封装 PPP协议,并采用PAP验证方式建立连接。(10 分)7、 运用 RIPV2 路由协议配置全网路由(20 分)。评分标准:路由器A 与路由器B 路由协议正常10 分,路由器A 与 S3550 路由协议正名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 2 页,共 22 页 - - - - - - - - - 常 10 分。8、 在路由器A作配置禁止学生网对172.16.1.18服务器进行访问,办公网只可以访问服务器的FTP 服务,其他都不允许访问。(20 分)。注意:在 S2126 上运行show vlan; show ip interface; show spanning; show running-config show interface f0/23 swITchport; show interface f0/24 switchport 在 3550 上要运行show vlan; show ip interface; show spanning; show running-config show ip route. 在路由器 A 和 B 上运行 show ip interface brief show ip route show running-config 路由器 A 还要运行show acess-lists. 实验图名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 3 页,共 22 页 - - - - - - - - - 1.在 S2126上运行 show vlan Switch#show vlan VLAN Name Status Ports - - - - 1 default active Fa0/6, Fa0/8, Fa0/9, Fa0/16 Fa0/17, Fa0/18, Fa0/19, Fa0/20 Fa0/21, Fa0/22, Po1 10 VLAN0010 active Fa0/23, Fa0/24 20 VLAN0020 active Fa0/1, Fa0/2, Fa0/3, Fa0/4 Fa0/5, Fa0/7 30 VLAN0030 active Fa0/10, Fa0/11, Fa0/12, Fa0/13 Fa0/14, Fa0/15 1002 fddi-default act/unsup 1003 token-ring-default act/unsup 1004 fddinet-default act/unsup 1005 trnet-default act/unsup 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 4 页,共 22 页 - - - - - - - - - VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 - - - - - - - - - - - 1 enet 100001 1500 - - - - - 0 0 10 enet 100010 1500 - - - - - 0 0 20 enet 100020 1500 - - - - - 0 0 30 enet 100030 1500 - - - - - 0 0 1002 fddi 101002 1500 - - - - - 0 0 1003 tr 101003 1500 - - - - - 0 0 1004 fdnet 101004 1500 - - - ieee - 0 0 1005 trnet 101005 1500 - - - ibm - 0 0 Remote SPAN VLANs - Primary Secondary Type Ports - - - - 2.show ip interface Switch#show ip interface Vlan1 is up, line protocol is down 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 5 页,共 22 页 - - - - - - - - - Internet address is 1.1.1.2/24 Broadcast address is 255.255.255.255 Address determined by setup command MTU is 1500 bytes Helper address is not set Directed broadcast forwarding is disabled Outgoing access list is not set Inbound access list is not set Proxy ARP is enabled Local Proxy ARP is disabled Security level is default Split horizon is enabled ICMP redirects are always sent ICMP unreachables are always sent ICMP mask replies are never sent IP fast switching is disabled IP fast switching on the same interface is disabled IP Null turbo vector IP multicast fast switching is disabled IP multicast distributed fast switching is disabled IP route-cache flags are None Router Discovery is disabled IP output packet accounting is disabled IP access violation accounting is disabled TCP/IP header compression is disabled RTP/IP header compression is disabled Probe proxy name replies are disabled Policy routing is disabled Network address translation is disable WCCP Redirect outbound is disabled WCCP Redirect inbound is disabled WCCP Redirect exclude is disabled BGP Policy Mapping is disabled 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 6 页,共 22 页 - - - - - - - - - 3.show spanning Switch#show spanning VLAN0010 Spanning tree enabled protocol ieee Root ID Priority 32778 Address 00D0.58BC.0490 This bridge is the root Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 32778 (priority 32768 sys-id-ext 10) Address 00D0.58BC.0490 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 20 Interface Role Sts Cost Prio.Nbr Type - - - - - - Fa0/23 Desg FWD 19 128.23 P2p Fa0/24 Desg FWD 19 128.24 P2p 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 7 页,共 22 页 - - - - - - - - - 4.show running-config Switch#show running-config Building configuration. Current configuration : 1430 bytes ! version 12.1 no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption ! hostname Switch ! ! ! interface FastEthernet0/1 switchport access vlan 20 switchport mode trunk ! interface FastEthernet0/2 switchport access vlan 20 switchport mode trunk ! 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 8 页,共 22 页 - - - - - - - - - interface FastEthernet0/3 switchport access vlan 20 ! interface FastEthernet0/4 switchport access vlan 20 ! interface FastEthernet0/5 switchport access vlan 20 ! interface FastEthernet0/6 ! interface FastEthernet0/7 switchport access vlan 20 ! interface FastEthernet0/8 ! interface FastEthernet0/9 ! interface FastEthernet0/10 switchport access vlan 30 ! interface FastEthernet0/11 switchport access vlan 30 ! interface FastEthernet0/12 switchport access vlan 30 ! interface FastEthernet0/13 switchport access vlan 30 ! interface FastEthernet0/14 switchport access vlan 30 ! interface FastEthernet0/15 switchport access vlan 30 ! interface FastEthernet0/16 ! interface FastEthernet0/17 ! interface FastEthernet0/18 ! interface FastEthernet0/19 ! 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 9 页,共 22 页 - - - - - - - - - interface FastEthernet0/20 ! interface FastEthernet0/21 ! interface FastEthernet0/22 ! interface FastEthernet0/23 switchport access vlan 10 ! interface FastEthernet0/24 switchport access vlan 10 ! interface Port-channel 1 switchport mode trunk ! interface Vlan1 ip address 1.1.1.2 255.255.255.0 ! ! line con 0 ! line vty 0 4 login line vty 5 15 login ! ! end 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 10 页,共 22 页 - - - - - - - - - 5.show interface f0/23 swITchport Switch#show interface f0/23 switchport Name: Fa0/23 Switchport: Enabled Administrative Mode: dynamic auto Operational Mode: static access Administrative Trunking Encapsulation: dot1q Operational Trunking Encapsulation: native Negotiation of Trunking: On Access Mode VLAN: 10 (VLAN0010) Trunking Native Mode VLAN: 1 (default) Voice VLAN: none Administrative private-vlan host-association: none Administrative private-vlan mapping: none Administrative private-vlan trunk native VLAN: none Administrative private-vlan trunk encapsulation: dot1q Administrative private-vlan trunk normal VLANs: none Administrative private-vlan trunk private VLANs: none Operational private-vlan: none Trunking VLANs Enabled: ALL 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 11 页,共 22 页 - - - - - - - - - Pruning VLANs Enabled: 2-1001 Capture Mode Disabled Capture VLANs Allowed: ALL Protected: false Appliance trust: none 6.show interface f0/24 switchport Switch#show interface f0/24 switchport Name: Fa0/24 Switchport: Enabled Administrative Mode: dynamic auto Operational Mode: static access Administrative Trunking Encapsulation: dot1q Operational Trunking Encapsulation: native Negotiation of Trunking: On Access Mode VLAN: 10 (VLAN0010) Trunking Native Mode VLAN: 1 (default) Voice VLAN: none Administrative private-vlan host-association: none Administrative private-vlan mapping: none Administrative private-vlan trunk native VLAN: none Administrative private-vlan trunk encapsulation: dot1q 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 12 页,共 22 页 - - - - - - - - - Administrative private-vlan trunk normal VLANs: none Administrative private-vlan trunk private VLANs: none Operational private-vlan: none Trunking VLANs Enabled: ALL Pruning VLANs Enabled: 2-1001 Capture Mode Disabled Capture VLANs Allowed: ALL Protected: false Appliance trust: none 7.在 3550上要运行 show vlan Switch#show vlan VLAN Name Status Ports - - - - 1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4 Fa0/5, Fa0/6, Fa0/8, Fa0/9 Fa0/10, Fa0/11, Fa0/12, Fa0/13 Fa0/14, Fa0/15, Fa0/16, Fa0/17 Fa0/18, Fa0/19, Fa0/20, Fa0/21 Fa0/22, Gig0/1, Gig0/2, Po1 10 VLAN0010 active Fa0/23, Fa0/24 20 VLAN0020 active 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 13 页,共 22 页 - - - - - - - - - 30 VLAN0030 active 40 VLAN0040 active Fa0/7 1002 fddi-default act/unsup 1003 token-ring-default act/unsup 1004 fddinet-default act/unsup 1005 trnet-default act/unsup VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 - - - - - - - - - - - 1 enet 100001 1500 - - - - - 0 0 10 enet 100010 1500 - - - - - 0 0 20 enet 100020 1500 - - - - - 0 0 30 enet 100030 1500 - - - - - 0 0 40 enet 100040 1500 - - - - - 0 0 1002 fddi 101002 1500 - - - - - 0 0 1003 tr 101003 1500 - - - - - 0 0 1004 fdnet 101004 1500 - - - ieee - 0 0 1005 trnet 101005 1500 - - - ibm - 0 0 Remote SPAN VLANs - Primary Secondary Type Ports - - - - 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 14 页,共 22 页 - - - - - - - - - 8.show ip interface 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 15 页,共 22 页 - - - - - - - - - 9.show spanningSwitch#show spanning VLAN0001 Spanning tree enabled protocol ieee Root ID Priority 32769 Address 00D0.BCB7.BDDA This bridge is the root Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 32769 (priority 32768 sys-id-ext 1) Address 00D0.BCB7.BDDA Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 20 Interface Role Sts Cost Prio.Nbr Type - - - - - - Fa0/1 Desg FWD 19 128.1 P2p VLAN0010 Spanning tree enabled protocol ieee Root ID Priority 32778 Address 00D0.58BC.0490 Cost 19 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 16 页,共 22 页 - - - - - - - - - Port 23(FastEthernet0/23) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 32778 (priority 32768 sys-id-ext 10) Address 00D0.BCB7.BDDA Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 20 Interface Role Sts Cost Prio.Nbr Type - - - - - - Fa0/24 Altn BLK 19 128.24 P2p Fa0/23 Root FWD 19 128.23 P2p 10.show running-config11.show ip route.Switch#show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 17 页,共 22 页 - - - - - - - - - i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route Gateway of last resort is not set 1.0.0.0/24 is subnetted, 1 subnets C 1.1.1.0 is directly connected, Vlan1 10.0.0.0/24 is subnetted, 1 subnets C 10.1.1.0 is directly connected, Vlan10 12.在路由器 A 上运行 show ip interface brief 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 18 页,共 22 页 - - - - - - - - - 13.show ip route 14.show running-config 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 19 页,共 22 页 - - - - - - - - - 15.路由器 A 还要运行 show acess-lists.16.在路由器 B 上运行 show ip interface brief 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 20 页,共 22 页 - - - - - - - - - PING Router#ping 10.1.1.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds: ! Success rate is 100 percent (5/5), round-trip min/avg/max = 31/31/32 ms Router#ping 192.168.1.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds: ! Success rate is 100 percent (5/5), round-trip min/avg/max = 31/31/32 ms Router#ping 172.16.1.18 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 172.16.1.18, timeout is 2 seconds: ! Success rate is 100 percent (5/5), round-trip min/avg/max = 31/31/32 ms 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 21 页,共 22 页 - - - - - - - - - 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 22 页,共 22 页 - - - - - - - - -