前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >思科实验

思科实验

作者头像
郭耀华
发布2019-10-23 15:06:04
6750
发布2019-10-23 15:06:04
举报

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的端口

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2019-06-05 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档