实验1交换机和路由器的基本配置
实验所属系列: 《计算机网络基础》课内实验 实验对象: 本科 相关课程及专业:计算机网络实验时数(学分):4学时
实验类别 课内上机
实验开发教师: 计算机网络课程组
姓名:
学号:
专业:
【实验目的】
理解和掌握交换机和路由器的工作原理;掌握交换机和路由器命令行各种操作模式的区别;能够使用各种帮助信息,以及用命令进行基本的配置。
【实验内容】
假设是某公司新进的网管,公司要求你熟悉网络产品。
首先要求你登录交换机或路由器,了解并掌握交换机和路由器的命令行操作,以及如何使用一些基本命令对设备进行配置,包括交换机和路由器的设备名、登录时的描述信息、端口参数的基本配置,以及设备运行状态的查看。
【实验环境】
【实验设备】
三层交换机1台、路由器1台、计算机1台。
【实验原理】
交换机和路由器(以下简称设备)的管理方式基本分为两种:带内管理和带外管理。通过设备的Console 口管理设备属于带外管理,不占用设备的网络接口,其特点是需要使用配置线缆,近距离配置。第一次配置交换机或路由器时必须利用Console 端口进行配置。
【实验步骤】
1. 配置交换机名称
2. 配置交换机每日提示信息
3. 配置接口状态
4. 查看交换机系统和配置信息以确认步骤3是否成功执行
5. 查看交换机配置信息并保存结果
6. 配置路由器的接口并查看借口配置
7. 显示路由表的信息并保存结果
【实验结果】
1.SW666#show running-config
Building configuration...
Current configuration : 1112 bytes
!
version 12.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname SW666
!
!
!
interface FastEthernet0/1
description "This is a Accessport."
duplex half
speed 10
!
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 Vlan1
no ip address
shutdown
!
banner motd ^C
Welcome to SW666, if you are admin, you can config it. if you are not admin, please EXIT!
^C
!
line con 0
!
line vty 0 4
login
line vty 5 15
login
!
!
End
2.Router#show running-config Building configuration...
Current configuration : 463 bytes !
version 12.4
no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption !
hostname Router
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0 duplex auto
speed auto
!
interface FastEthernet0/1 no ip address duplex auto speed auto
shutdown
!
interface Vlan1 no ip address shutdown
!
ip classless
!
!
!
!
!
!
!
line con 0
line vty 0 4
login
!
!
!
end
实验1交换机和路由器的基本配置
实验所属系列: 《计算机网络基础》课内实验 实验对象: 本科 相关课程及专业:计算机网络实验时数(学分):4学时
实验类别 课内上机
实验开发教师: 计算机网络课程组
姓名:
学号:
专业:
【实验目的】
理解和掌握交换机和路由器的工作原理;掌握交换机和路由器命令行各种操作模式的区别;能够使用各种帮助信息,以及用命令进行基本的配置。
【实验内容】
假设是某公司新进的网管,公司要求你熟悉网络产品。
首先要求你登录交换机或路由器,了解并掌握交换机和路由器的命令行操作,以及如何使用一些基本命令对设备进行配置,包括交换机和路由器的设备名、登录时的描述信息、端口参数的基本配置,以及设备运行状态的查看。
【实验环境】
【实验设备】
三层交换机1台、路由器1台、计算机1台。
【实验原理】
交换机和路由器(以下简称设备)的管理方式基本分为两种:带内管理和带外管理。通过设备的Console 口管理设备属于带外管理,不占用设备的网络接口,其特点是需要使用配置线缆,近距离配置。第一次配置交换机或路由器时必须利用Console 端口进行配置。
【实验步骤】
1. 配置交换机名称
2. 配置交换机每日提示信息
3. 配置接口状态
4. 查看交换机系统和配置信息以确认步骤3是否成功执行
5. 查看交换机配置信息并保存结果
6. 配置路由器的接口并查看借口配置
7. 显示路由表的信息并保存结果
【实验结果】
1.SW666#show running-config
Building configuration...
Current configuration : 1112 bytes
!
version 12.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname SW666
!
!
!
interface FastEthernet0/1
description "This is a Accessport."
duplex half
speed 10
!
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 Vlan1
no ip address
shutdown
!
banner motd ^C
Welcome to SW666, if you are admin, you can config it. if you are not admin, please EXIT!
^C
!
line con 0
!
line vty 0 4
login
line vty 5 15
login
!
!
End
2.Router#show running-config Building configuration...
Current configuration : 463 bytes !
version 12.4
no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption !
hostname Router
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0 duplex auto
speed auto
!
interface FastEthernet0/1 no ip address duplex auto speed auto
shutdown
!
interface Vlan1 no ip address shutdown
!
ip classless
!
!
!
!
!
!
!
line con 0
line vty 0 4
login
!
!
!
end