实验名称:PC、交换机、路由通信

实验拓扑:

实验步骤:PC配置IP、交换机配置IP网关开启用户远程登录、路由器配置IP开启远程登录

实验总结:Ping正常,Telnet正常。 ip default-gateway 192.168.1.254

实验命令:

Switch>enable

Switch#configure terminal

Switch(config)#hostname CiscoSwitch1

CiscoSwitch1(config)#no IP domain-lookup

CiscoSwitch1(config)#line console 0

CiscoSwitch1(config-line)#password 111111

CiscoSwitch1(config-line)#login

CiscoSwitch1(config-line)#exit

CiscoSwitch1(config)#line vty 0 4

CiscoSwitch1(config-line)#password 222222

CiscoSwitch1(config-line)#login

CiscoSwitch1(config-line)#exit

CiscoSwitch1(config)#enable password 333333

CiscoSwitch1(config)#interface vlan 1

CiscoSwitch1(config-if)#no shutdown

CiscoSwitch1(config-if)#ip address 192.168.1.10 255.255.255.0

CiscoSwitch1(config-if)#exit

CiscoSwitch1(config)#ip default-gateway 192.168.1.254

CiscoSwitch1(config)#exit

CiscoSwitch1#

CiscoSwitch1#show running-config

Building configuration...

Current configuration : 1186 bytes

!

version 12.2

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname CiscoSwitch1

!

enable password 333333

!

!

!

no ip domain-lookup

!

!

spanning-tree mode pvst

!

interface FastEthernet0/1

!

interface FastEthernet0/2

!

interface FastEthernet0/3

!

interface FastEthernet0/4

!

interface FastEthernet0/5

!

interface FastEthernet0/6

!

interface FastEthernet0/7

!

interface FastEthernet0/8

!

interface FastEthernet0/9

!

interface FastEthernet0/10

!

interface FastEthernet0/11

!

interface FastEthernet0/12

!

interface FastEthernet0/13

!

interface FastEthernet0/14

!

interface FastEthernet0/15

!

interface FastEthernet0/16

!

interface FastEthernet0/17

!

interface FastEthernet0/18

!

interface FastEthernet0/19

!

interface FastEthernet0/20

!

interface FastEthernet0/21

!

interface FastEthernet0/22

!

interface FastEthernet0/23

!

interface FastEthernet0/24

!

interface GigabitEthernet0/1

!

interface GigabitEthernet0/2

!

interface Vlan1

ip address 192.168.1.10 255.255.255.0

!

ip default-gateway 192.168.1.254

!

!

!

!

line con 0

password 111111

login

!

line vty 0 4

password 222222

login

line vty 5 15

login

!

!

!

end

CiscoSwitch1#write

CiscoSwitch1#config terminal

CiscoSwitch1(config)#service password-encryption

CiscoSwitch1(config)#exit

CiscoSwitch1#write

CiscoSwitch1#reload

Router>enable

Router#configure terminal

Router(config)#hostname CiscoRouter

CiscoRouter(config)#no ip domain-lookup

CiscoRouter(config)#enable password 111111

CiscoRouter(config)#line console 0

CiscoRouter(config-line)#password 222222

CiscoRouter(config-line)#login

CiscoRouter(config-line)#exit

CiscoRouter(config)#line vty 0 4

CiscoRouter(config-line)#password 333333

CiscoRouter(config-line)#login

CiscoRouter(config-line)#exit

CiscoRouter(config)#interface GigabitEthernet 0/1

CiscoRouter(config-if)#no shutdown

CiscoRouter(config-if)#ip address 192.168.1.254 255.255.255.0

CiscoRouter(config-if)#exit

CiscoRouter(config)#interface gigabitEthernet 0/2

CiscoRouter(config-if)#no shutdown

CiscoRouter(config-if)#ip address 192.168.2.254 255.255.255.0

CiscoRouter(config-if)#end

CiscoRouter#

CiscoRouter#show running-config

Building configuration...

Current configuration : 809 bytes

!

version 15.1

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname CiscoRouter

!

!

!

enable password 111111

!

!

!

!

!

!

ip cef

no ipv6 cef

!

!

!

!

license udi pid CISCO2911/K9 sn FTX1524MK72

!

!

!

!

!

!

!

!

!

no ip domain-lookup

!

!

spanning-tree mode pvst

!

!

!

!

!

!

interface GigabitEthernet0/0

no ip address

duplex auto

speed auto

shutdown

!

interface GigabitEthernet0/1

ip address 192.168.1.254 255.255.255.0

duplex auto

speed auto

!

interface GigabitEthernet0/2

ip address 192.168.2.254 255.255.255.0

duplex auto

speed auto

!

interface Vlan1

no ip address

shutdown

!

ip classless

!

ip flow-export version 9

!

!

!

!

!

!

!

line con 0

password 222222

login

!

line aux 0

!

line vty 0 4

password 333333

login

!

!

!

end

CiscoRouter#configure terminal

CiscoRouter(config)#service password-encryption

CiscoRouter(config)#end

CiscoRouter#

CiscoRouter#write

CiscoRouter#reload

转载于:https://blog.51cto.com/14019187/2318033

NETWORK笔记7:思科命令实验相关推荐

  1. 思科仿真实验--RIP协议动态路由配置

    思科仿真实验–RIP动态路由 实验设备 PC 2 台:Switch_3560 1 台:Router-PT 2 台:直连线:交叉线:DCE 串口线 设备配置情况 PC1 IP: 192.168.1.2 ...

  2. 计算机网络实验指导书实验报告,计算机网络实验一 熟悉常用的网络命令实验报告模板...

    实验一熟悉常用的网络命令实验报告 序号:姓名:学号:成绩指导教师: 1.实验目的: 学会使用常用ping ,ipconfig, nslookup, arp ,tracert等常用网络测试命令检测网络连 ...

  3. linux下 命令 实验,实验一:Linux命令实验

    实验一:Linux命令实验 (3页) 本资源提供全文预览,点击全文预览即可全文预览,如果喜欢文档就下载吧,查找使用更方便哦! 19.90 积分 实验一 Linux常用命令1.Linux文件与目录的基本 ...

  4. linux实验试题 cp,cp命令实验,cp命令

    cp命令实验,cp命令 创建条件 [root@localhost ~]#mkdir /source [root@localhost~]#mkdir /target [root@localhost~]# ...

  5. 咸鱼Maya笔记—Maya 倒角命令

    咸鱼Maya笔记-Maya 倒角命令 倒角 挤出 倒角命令可以将选定的顶点或边展开为一个新面,或使多边形网格的边成为圆形边,也可在面组件层级使用倒角命令编辑多边形面. 倒角 可以单击菜单栏中" ...

  6. neutron创建network执行的那些命令

    [转载]neutron创建network执行的那些命令原文地址:http://www.cnblogs.com/popsuper1982/p/3849822.html 当搭建完openstack之后,在 ...

  7. Linux自学笔记 | 10 常用命令 - 压缩解压类

    Linux自学笔记 | 10 常用命令 - 压缩解压类 Linux自学笔记 | 01 文件系统和目录结构 Linux自学笔记 | 02 VIM编辑器的安装与使用 Linux自学笔记 | 03 Linu ...

  8. 思科无线实验AC+AP

    思科无线实验AC+AP 拓扑图 Agg-server interface Vlan10mac-address 00e0.f74b.b301ip address 192.168.10.254 255.2 ...

  9. STATA学习笔记:外部命令

    STATA学习笔记:外部命令 1.设置外部命令存储地址 //在电脑里设置好文件夹以备存储外部命令 //Set location where packages will be installed //方 ...

最新文章

  1. 控件不响应点击事件解决办法
  2. iOS下载大文件原理解析一
  3. NetBeans 7.2引入了TestNG
  4. es6 数组合并_那些会用到的 ES6 精粹(包邮送书)
  5. 分享一些 Windows 平台上的神器
  6. [北京]招聘C++程序员
  7. Linux入门——文本处理三剑客之gnu awk
  8. 中国电网计算机面试题目,国家电网面试经验
  9. Dos窗口文字背景颜色设置
  10. 人工神经网络概念梳理与实例演示
  11. spring cloud bus
  12. 投资组合理论的简单介绍
  13. 【平衡二叉樹】超市促銷
  14. [SSM框架]—Mybatis入门
  15. 睡眠助手APP开发解决方案
  16. mysql自旋锁_mysql 自旋锁
  17. 哈工大 2021春 计算机系统 大作业程序人生
  18. RS485、RS232、TTL的电平以及数据的收发
  19. 给自己写一个年终总结,新年快乐!
  20. 基姆拉尔森公式和蔡勒公式(计算星期几)

热门文章

  1. APT30-网络间谍活动分析
  2. eclipse-查看继承层次图/继承实现层次图
  3. UML图——类图(6中关系)
  4. 入门电机系列之3舵机
  5. 小厂B端产品啥都干——B端表格设计入门指南(上)
  6. 典型的计算机串行和并行总线,串行总线和并行总线的区别
  7. 知数堂郑松华:MySQL 8.0 SQL优化之CTE 、窗口函数的应用
  8. hdu 1001 Sum Problem
  9. SpringBoot整合Elastricsearch + LogStash + Kibana太简单了!
  10. 我所学到的EC-2(个人学习总结,不能保证正确,欢迎大佬指正)