各种模式切换enable //进入特权模式
Configure terminal //进入全局配置模式
interface fastEthernet 0/0(接口) //进入接口配置模式
End //直接退回到特权模式***
Exit //返回上一步***
1.配置主机名:hostname
hostname是在全局配置模式(config)
2.显示系统iOS名称及版本信息:show version
3.查看MAC地址表:show mac-address -table
4.指定接口双工模式:(half/full/auto) duplex
【注】:half:半双工
full:全双工
auto:自动协商
5.指定接口的通信速率:speed(10/100/1000/auto)
6.查看IP地址:ipconfig ;
查看所有IP地址信息:ipconfig /all
7.测试网络连通性:ping *****
8.永不超时:Switvh(config)# line con 0
Switvh(config-if)# exec-timeout 0 0
9.信息同步:Switch(config)# logging sync
10.禁用域名解析:Switch(config)# no ip domain-lookup
11.路由器配置IP地址:
Router (config)# int f0/1(可变)
Router (config-if)# ip address ip_adssress subnet-mask
Router (config-ip)# no shutown
12.查看当前位置:Switch# show run
13.删除配置Switch#erase startup-config
14.配置enable密码
在全局配置模式下输入,enable password 你要设置的密码
配置远程密码: 在全局模式下输入line vty 0 4配置远程密码
然后我们验证一下
首先退出到普通模式,然后输入eable测试有没有密码
这些密码都是暂时性的,如果想要永久保存的话可以在特权模式下输入write,这样就可以永远保存了
给PC机配置IP地址
这样就可以啦,等后期还可以自动获取IP地址 。