2016计算机网络技术实验实训教程:实验五三层交换机的端口配置
计算机网络技术实验实训教程
实验五 三层交换机的端口配置
实验名称:三层交换机的端口配置。
实验目的:开启三层交换机的三层功能,实现路由功能,掌握三层交换机基本配置方法。
技术原理:三层交换机的每一个接口连接一个独立的VLAN,开启每个接口的路由功能,并配置IP。
实现功能:开启三层交换机物理端口的路由功能。
实验设备:S3750一台,直连线一根。
实验拓朴:
实验步骤:1. 开启三层交换机的路由功能。
Switch>en
Switch#conf t
Switch(config)#hostname s3750
S3750(config)#ip routing ! 开启三层交换机的路由功能。
2.配置三层交换机端口的路由功能。
S3750(config)#int fa 0/5
S3750(config-if)#no switchport ! 开启端口的三层路由功能。
S3750(config-if)#ip address 192.168.5.1 255.255.255.0 !给端口配IP。
S3750(config-if)#no shutdown
S3750(config-if)#end
3.验证测试配置。
S3750#show ip interface !查看该接口的IP协议相关属性。
Interface : Fa0/5
Description : FastEthernet100BaseTX 0/5
OperStatus : down
ManagementStatus : Enabled
Primary Internet address: 192.168.5.1/24
Broadcast address : 255.255.255.255
PhysAddress : 00d0.f8b5.7a8e
S3750#show interface fa0/5 !查看接口状态信息。
Interface : FastEthernet100BaseTX 0/5
Description :
AdminStatus : up
OperStatus : down
Medium-type : copper
Hardware : 10Base-T/100Base-TX
Mtu : 1500
LastChange : 0d:0h:33m:22s
AdminDuplex : Auto
OperDuplex : Unknown
AdminSpeed : Auto
OperSpeed : Unknown
FlowControlAdminStatus : Off
FlowControlOperStatus : Off
Priority : 0
Broadcast blocked :DISABLE
Unknown multicast blocked :DISABLE
Unknown unicast blocked :DISABLE
ARP Timeout : 3600 sec
Primary Internet address: 192.168.5.1/24
PhysAddress : 00d0.f8b5.7a8e
ManagementStatus:Enabled
Broadcast address : 255.255.255.255
S3750#show running-config
System software version : RGNOS V4.12(2) Build Dec 30 2006 Release
Building configuration...
Current configuration : 273 bytes
!
version 1.0
!
hostname s3750
vlan 1
!
enable secret level 14 5 ":>H.Y*T2;C,tZ[VW
enable secret level 15 5 (9wj9=G18r7R:>H.8pu_;C,t:pU0
!
interface FastEthernet 0/5
no switchport
ip address 192.168.5.1 255.255.255.0
!
end
Ping 192.168.5.1
Sending 5, 100-byte ICMP Echos to 192.168.5.1,
timeout is 2000 milli