交换机路由器基本配置实验

  • 格式:doc
  • 大小:97.50 KB
  • 文档页数:5

实验一 交换机基本配置实验 一、实验名称 交换机基本配置实验。

二、实验目的 掌握交换机的管理特性。熟悉交换机配置常用的几种命令模式,学会交换机配置的基本命令。

三、实验内容 完成对交换机的基本配置。本实验以S2126交换机为例,交换机命名为SwitchA。PC机已经通过一块网卡通过中心机柜和RCMS连接到交换机的控制端口(Console口),将PC机的另一块网卡连接到交换机的F0/1端口。假设PC机连接到F0/1端口网卡的IP地址和网络掩码分别为192.168.0.1,255.255.255.0,配置交换机的虚拟局域网管理IP地址和网络掩码分别为192.168.0.2,255.255.255.0。

四、实验拓扑

五、实验设备 S2126G交换机1台、PC机1台。

六、实验步骤 1.按实验拓扑图进行正确的设备连接。

2.在交换机上配置虚拟管理接口IP地址。 G7-S2126-02>enable 14 ! 进入特权模式 Password: ! 输入口令 G7-S2126-02#config terminal ! 进入全局配置模式 G7-S2126-02(config)#hostname SwitchA !配置交换机名称为”SwitchA” SwitchA(config)#interface vlan1 !进入交换机虚拟管理接口配置模式 SwitchA(config-if)#ip address 192.168.0.2 255.255.255.0 !配置交换机虚拟管理接口IP地址 SwitchA(config-if)#no shutdown !开启交换机管理接口

SwitchA F0/1 Console

NIC NIC

局域网中心机柜

R

图2-1 交换机基本配置实验拓扑结构图 3.验证测试:验证交换机管理IP地址已经配置和开启 SwitchA(config-if)#end !退到特权模式 SwitchA#show ip interface !查看交换机管理接口配置情况 Interface : VL1 Description : Vlan 1 OperStatus : up ManagementStatus : Enabled Primary Internet address: 192.168.0.2/24 Broadcast address : 255.255.255.255 PhysAddress : 00d0.f88b.c4b9

4.验证交换机与PC机的网络连通性 SwitchA#ping 192.168.0.1 !验证交换机管理接口与PC机的网络连通性 Sending 5, 100-byte ICMP Echos to 192.168.0.1, timeout is 2000 milliseconds. !!!!! Success rate is 100 percent (5/5) Minimum = 1ms Maximum = 10ms, Average = 2ms !可以ping通PC机

或者使用show interface vlan1命令查看管理接口配置情况 SwitchA#show interface vlan1 Interface : Vlan 1 Description : AdminStatus : up OperStatus : up Hardware : - Mtu : 1500 LastChange : 0d:0h:0m:0s ARP Timeout : 3600 sec PhysAddress : 00d0.f88b.c4b9 ManagementStatus:Enabled Primary Internet address: 192.168.0.2/24 Broadcast address : 255.255.255.255

5.查看交换机正在运行的配置 SwitchA#show running-config !显示交换机SwitchA的运行配置 System software version : 1.61(2) Build Aug 31 2005 Release Building configuration... Current configuration : 253 bytes

! version 1.0 ! hostname SwitchA vlan 1 ! enable secret level 14 5 $9>H.Y*TX;C,tZ[V8enable secret level 15 5 )99j9=G1X73R:>H.8\u_;C,t83U0! interface vlan 1 no shutdown ip address 192.168.0.2 255.255.255.0 ! end 实验二 路由器基本配置实验 一、实验名称 路由器基本配置实验。

二、实验目的 掌握路由器的管理特性。熟悉路由器配置常用的几种命令模式,学会路由器配置的基本命令。 三、实验内容 完成对路由器的基本配置,本实验以一台R1700路由器为例,路由器命名为RouterA。PC机已经通过一块网卡连接到交换机的控制端口(Console口),通过另一块网卡连接到路由器的Fastethernet1/0端口。假设PC机连接到Fastethernet1/0端口网卡的IP地址和网络掩码分别为192.168.0.1,255.255.255.0,配置交换机的虚拟局域网管理IP地址和网络掩码分别为192.168.0.2,255.255.255.0。

四、实验拓扑

五、实验设备 R17001路由器1台、PC机1台。

六、实验步骤 1.实验拓扑图正确连接设备。

2.在路由器上配置fastethernet1 /0端口的IP地址 G7-R1762-01>enable 14 !进入特权模式 Password: !输入口令 G7-R1762-01#config terminal !进入全局配置模式 Enter configuration commands, one per line. End with CNTL/Z. G7-R1762-01(config)#hostname RouterA ! 配置路由器名称为” RouterA” RouterA (config)#interface fastEthernet 1/0 ! 进入路由器接口(F1/0)配置模式 RouterA (config-if)#ip address 192.168.0.2 255.255.255.0 ! 配置路由器管理接口IP地址

NIC NIC RouterA 局域网中心机柜 Console F1/0 192.168.0.2 192.168.0.1

R

图2-3 路由器基本配置实验拓扑结构图 RouterA (config-if)#no shutdown !开启路由器F1/0接口 3.验证测试:验证路由器fastethernet1/0的IP地址已经配置和开启 RouterA (config-if)#show ip interface f1/0 ! 验证路由器fastethernet1/0的IP地址已经配置和开启

FastEthernet 1/0 IP interface state is: UP IP interface type is: BROADCAST IP interface MTU is: 1500 IP address is: 192.168.0.2/24 (primary) IP address negotiate is: OFF Forward direct-boardcast is: ON ICMP mask reply is: ON Send ICMP redirect is: ON Send ICMP unreachabled is: ON DHCP relay is: OFF Fast switch is: ON Route horizontal-split is: ON Help address is: 0.0.0.0 Proxy ARP is: ON Outgoing access list is not set. Inbound access list is not set. 或者使用命令:show ip interface brief查看接口简要描述 RouterA (config-if)#show ip interface brief !查看接口简要描述 Interface IP-Address(Pri) OK? Status serial 1/2 192.168.13.3/24 YES UP serial 1/3 192.168.23.3/24 YES UP FastEthernet 1/0 192.168.0.2/24 YES UP FastEthernet 1/1 192.168.3.1/24 YES DOWN Null 0 no address YES UP

4.验证路由器与PC机的网络连通性 RouterA #ping 192.168.0.1 !验证路由器与PC机的网络连通性 Sending 5, 100-byte ICMP Echoes to 192.168.0.1, timeout is 2 seconds: < press Ctrl+C to break > !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms !F1/01口可以ping通PC机

5.查看路由器运行配置 RouterA # show running-config !查看路由器运行配置