案例一使用交换机的命令行管理界面2
公司现有1台三层交换机,要求你进行测试,该交换机的三层功能是否工作正常。
开启三层交换机物理端口的路由功能。
switch 1
pc 1
switchAswitchA
consoleconsole
1
Switch>enable
Switch#configure terminal
Switch(config)#hostname S3550-24
S3550-24(config)#IP routing !开启三层交换机的路由功能
2.
S3550-24(config)#interface fastEthernet 0/5
S3550-24(config-if)#no switchport !开启三层交换机的路由功能
S3550-24(config-if)#ip address 192.168.5.1 255.255.255.0
S3550-24(config-if)#no shutdown
S3550-24(config-if)#end
3. S3550-24#show ip interface
Interface : Fa0/5
Description : FastEthernet100BaseTX 0/5
OperStatus : up !接口状态为up
ManagementStatus : Enabled
Primary Internet address: 192.168.5.1/24
Broadcast address : 255.255.255.255
PhysAddress : 00d0.f8b8.289b
S3550-24#show interfaces fastEthernet 0/5 !查看接口状态信息
Interface : FastEthernet100BaseTX 0/5
Description :
AdminStatus : up !接口状态是up
OperStatus : up
Hardware : 10/100BaseTX
Mtu : 1500
LastChange : 0d:2h:24m:17s
AdminDuplex : Auto
OperDuplex : Full
AdminSpeed : Auto
OperSpeed : 100
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.f8b8.289b
ManagementStatus:Enabled
Broadcast address : 255.255.255.255
主机测试:将pc1的ip地址设为192.168.5.2/24,在pc1上ping192.168.5.1.
C:\Documents and Settings\Administrator>ping 192.168.5.1 Pinging 172.16.3.1 with 32 bytes of data: Reply from 192.168.5.1: bytes=32 time<1ms TTL=64 Reply from 192.168.5.1: bytes=32 time<1ms TTL=64 Reply from 192.168.5.1: bytes=32 time<1ms TTL=64 Reply from 192.168.5.1: bytes=32 time<1ms TTL=64 Ping statistics for 172.16.3.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
S3550-24#show running-config
System software version : 2.41(4) Build Nov 23 2005 Release
Building configuration...
Current configuration : 143 bytes
!
version 1.0
!
hostname S3550-24
vlan 1
!
interface FastEthernet 0/5
no switchport
ip address 192.168.5.1 255.255.255.0
!
end
本文档为【案例一使用交换机的命令行管理界面2】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑,
图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。