新《计算机网络》实验-8-2015 - 图文

2026/4/24 10:26:27

下面是交换机的命令截图

这时就可以按交换机或路由器的命令进行配置了。

下面提供一些输入命令的参考

第一步:交换机各个操作模式直接的切换

Swtich>enable //使用enable命令从用户模式进入特权模式 Swtich#configure terminal //进入全局配置模式

Enter configuration commands, one per line. End with CNTL/Z. !使用configure terminal命令从特权模式进入全局配置模式 Swtich(config)#interface fastEthernet 0/1 !使用interface命令进入接口配置模式

Swtich(config-if)# Swtich(config-if)#exit //!使用exit命令退回上一级操作模式

Swtich#configure terminal //进入全局配置模式

Swtich(config)#interface fastEthernet 0/2 //进入接口配置模式 Swtich(config-if)#end //使用end命令直接退回特权模式

Swtich# !

第二步:交换机命令行界面基本功能

Switch>?

!显示当前模式下所有可执行的命令 disable Turn off privileged commands enable Turn on privileged commands exit Exit from the EXEC

help Description of the interactive help system ping Send echo messages

rcommand Run command on remote switch show Show running system information telnet Open a telnet connection

traceroute Trace route to destination Swtich>en Swtich>enable

!使用tab键补齐命令 Swtich#con?

configure connect

!使用?显示当前模式下所有以“con”开头的命令 Swtich#conf t

Enter configuration commands, one per line. End with CNTL/Z. Swtich(config)# !使用命令的简写

Swtich(config)#interface ?

!显示interface命令后可执行的参数 Aggregateport Aggregate port interface Dialer Dialer interface

FastEthernet Fast IEEE 802.3

GigabitEthernet Gbyte Ethernet interface Loopback Loopback interface Multilink Multilink-group interface Null Null interface

Tunnel Tunnel interface

Virtual-ppp Virtual PPP interface

Virtual-template Virtual Template interface Vlan Vlan interface

range Interface range command Switch(config)#interface

Swtich(config)#interface fastEthernet 0/1 Switch(config-if)# ^Z Switch#

!使用快捷键“Ctrl+Z”可以直接退回到特权模式 Switch#ping 1.1.1.1

sending 5, 100-byte ICMP Echos to 1.1.1.1,

timeout is 2000 milliseconds. . ^C Switch#

!在交换机特权模式下执行ping 1.1.1.1命令,发现不能ping通目标地址,交换机默认情况下需要发送5个数据包,如不想等到5个数据包均不能ping通目标地址的反馈出现,可在数


新《计算机网络》实验-8-2015 - 图文.doc 将本文的Word文档下载到电脑
搜索更多关于: 新《计算机网络》实验-8-2015 - 图文 的文档
相关推荐
相关阅读
× 游客快捷下载通道(下载后可以自由复制和排版)

下载本文档需要支付 10

支付方式:

开通VIP包月会员 特价:29元/月

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:xuecool-com QQ:370150219