思科实验

config terminal 特权模式

int face e1/0

ip add 192.168.1.1 255.255.255.0 配置ip

no shutdown 端口up状态

exit

exit

sh ip inter brief 查看端口

wr 保存配置

sh version 查看系统信息及版本号

sh protocals查看接口状态

sh running-conf 查看当前配置

copy running-con startup-conf 保存信息

wr 保存信息

erase startup-conf 恢复到出厂设置

reload重启

console口认证配置

config termin 进入特权模式

line console 0 进入vty模式

password mima 密码

login 开启登录认证

config term 进入特权模式

hostname user1 password passwd1 创建用户密码

hostname user2 password passwd2 创建多个用户

line conso 0 进入console模式

login local 本地数据库账户密码认证

远程登录

conf term #特权模式

line vty 0 4  vty链路0-4

password pwd1 登录密码

login 登录认证

用户名密码登录

conf term

line vty 0 4

login local #前面已经配置好用户名密码

exit

exit

sh users #查看登录账号

 用户模式进入到特权模式配置账户密码

config termin 

enable password pwd1

enable secre pwd2

创建、修改、删除vlan

conf term

vlan 100 #创建vlan

name vlan_name #命名vlan

exit

exit

sh vlan (brief) #查看vlan

conf term 

no vlan 100 #删除vlan

sh int f0/0 #查看端口

sh arp #查看arp

绑定端口

conf term 

inter f 0/0#接口模式

switchport access vlan vlan_num #绑定某个vlan

exit

int range f0/1-15

swichport access vlan vlan_num2 #绑定某个vlan

配置交换机之间的trunk链路

conf term 

int e0/3

switchport trunk enca dot

switchport mode trunk

exit

exit

sh inter trunk 

vtp 同步vlan数据库

conf term

vtp dom fumy

vtp password pwd

vtp mode server #设置成服务端

conf term 

vtp domain fumy

vtp mode client#设置成客户端

sh vtp status

sh vtp password

配置802.1q子接口

 conf term

int f0/0

no ip add

exit

int f0/0.1

enca dot 100

ip add 192.168.1.4 255.255.255.0

no shut

exit

int f0/0.2

enca dot 200

ip add 192.168.100.4 255.255.255.0

no shut

 4.配置和实施静态路由

  conf term

  ip  add 192.168.23.0 255.255.255.0 192.168.13.2

  sh ip route

  ip add 192.168.13.0 255.255.255.0 192.168.23.2

5.配置和实施rip路由

   conf term 

  router rip

  network 

6.eigrp路由

  conf term

  router eigrp 90

  network 192.168.12.0 0.0.0.255

  no auto-sum

  sh ip eigrp int #查看运行eigrp的端口

原文地址:https://www.cnblogs.com/fumy/p/10981148.html