当前位置:首页 > 新《计算机网络》实验-8-2015 - 图文
下面是交换机的命令截图
这时就可以按交换机或路由器的命令进行配置了。
下面提供一些输入命令的参考
第一步:交换机各个操作模式直接的切换
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
!使用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通目标地址的反馈出现,可在数
共分享92篇相关文档