- 1、本文档共6页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
路由器与交换机实验报告-示例模板
三层交换机
实验目的:
配置三层交换机的VLAN路由。
实验要求
配置VLAN间路由。
将交换机的Fa0/2指定到VLAN2中。
配置VLAN 1接口。
配置VLAN 2接口。
网络拓扑
图1网络拓扑
配置步骤
在Multilayer Switch0上
Switch(config)#vlan 2 创建一个VLAN 2
Switch(config)#interface fastEthernet 0/2
Switch(config-if)#switchport access vlan 2 将Fa 0/2指定到VLAN 2中
Switch(config-if)#
Switch(config-vlan)#exit
Switch(config)#interface vlan 1 进入VLAN 1接口
Switch(config-if)#ip address 10.0.0.1 255.0.0.0
Switch(config-if)#int vlan 2 进入VLAN 2接口
Switch(config-if)#ip address 11.0.0.1 255.0.0.0
在PC1上测试到PC0的连通性
PCping 10.0.0.2
Pinging 10.0.0.2 with 32 bytes of data:
Request timed out.
Reply from 10.0.0.2: bytes=32 time=8ms TTL=127
Reply from 10.0.0.2: bytes=32 time=10ms TTL=127
Reply from 10.0.0.2: bytes=32 time=5ms TTL=127
Ping statistics for 10.0.0.2:
Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
Minimum = 5ms, Maximum = 10ms, Average = 7ms
PC
问题分析与总结
有路由模块的交换机配置VLAN较为容易。
只要先创建VLAN 2,就有与之相对应的接口VLAN 2。
附录:配置文件
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Switch
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/1
switchport access vlan 10
!
interface FastEthernet0/2
switchport access vlan 20
!
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
!
interf
文档评论(0)