好文档 - 专业文书写作范文服务资料分享网站

计算机网络实验报告——通过路由器实现VLAN间通信

天下 分享 时间: 加入收藏 我要投稿 点赞

实验二 通过路由器实现VLAN间通信

一、实验环境:Windows7操作系统的计算机;

Boson Netsim for CCNA v6.0

二、实验步骤;sw1的fa0/1接到pc1,sw1的fa0/2接到pc2,sw2的fa0/1接到pc3,sw1的fa0/2接到pc4,sw1的fa0/12接到sw2的fa0/12,rt1的fa0/1接到sw1的fa0/3.配置如下:

(1) 交换机Switch1配置如下:

Switch>enable

Switch#vlan database

Switch(vlan)#vtp domain yctc

Changing VTP domain from NULL to yctc Switch(vlan)#vtp server

Switch(vlan)#vlan 10 name zz VLAN 10 added: Name:zz

Switch(vlan)#vlan 20 name nn VLAN 20 added: Name:nn Switch(vlan)#exit APPLY completed. Exiting....

Switch#config t

Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#hostname switch1 switch1(config)#inter fa0/1

switch1(config-if)#switchport mode access switch1(config-if)#switchport access vlan 10 switch1(config-if)#inter fa0/2

switch1(config-if)#swwitchport mode access ^

% Invalid input detected at '^' marker.

switch1(config-if)#switchport mode access switch1(config-if)#switchport access vlan 20 switch1(config-if)#inter fa0/12

switch1(config-if)#switchport mode trunk switch1(config-if)#inter fa0/3

switch1(config-if)#switchport mode trunk

(2) 交换机Switch2配置如下:

Switch>enable

Switch#vlan database

Switch(vlan)#vtp domain yctc

Changing VTP domain from NULL to yctc Switch(vlan)#vtp client Switch(vlan)#exit APPLY completed. Exiting....

Switch#config t

Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#hostname switch2 switch2(config)#inter fa0/1

switch2(config-if)#switchport mode access switch2(config-if)#switchport access vlan 10 switch2(config-if)#inter fa0/2

switch2(config-if)#switchport mode access switch2(config-if)#switchport access vlan 20 switch2(config-if)#inter fa0/12

switch2(config-if)#switchport mode trunk switch2(config-if)#

PC1:

192.168.10.2 255.255.255.0 192.168.10.1 PC2:

192.168.20.2 255.255.255.0 192.168.20.1 PC3:

192.168.10.3 255.255.255.0 192.168.10.1 PC4:

192.168.20.3 255.255.255.0 192.168.20.1

(3)路由器配置:

Router>enable Router#conifg t ^

% Invalid input detected at '^' marker.

Router#config t

Enter configuration commands, one per line. End with CNTL/Z. Router(config)#inter fa0/3 Invalid Command

Router(config)#inter fa0/0

Router(config-if)#no ip address Router(config-if)#no shut

%LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up Router(config-if)#exit

Router(config)#int fa0/0.10 Router(config-subif)#

Router(config-subif)#enca dotlq 10 ^

% Invalid input detected at '^' marker.

Router(config-subif)#enca dot1q 10

Router(config-subif)#ip address 192.168.10.1 255.255.255.0 Router(config-subif)#exit Router(config)#int fa0/0.20

Router(config-subif)#enca dot1q 20

Router(config-subif)#ip address 192.168.20.1 255.255.255.0 Router(config-subif)#exit Router(config)#

三、最终配置列表:

Router1 Switch1 Switch2 PC1 PC1 PC1 PC1 子端口 192.168.10.1 Vlan10 Vlan10 子端口 192.168.20.1 Vlan20 Vlan20 Ethernet ip 子网掩255.255.255.0 码 255.255.255.0 255.255.255.0 255.255.255.0 255.255.255.0

计算机网络实验报告——通过路由器实现VLAN间通信

实验二通过路由器实现VLAN间通信一、实验环境:Windows7操作系统的计算机;BosonNetsimforCCNAv6.0二、实验步骤;sw1的fa0/1接到pc1,sw1的fa0/2接到pc2,sw2的fa0/1接到pc3,sw1的fa0/2接到pc4,sw1的fa0/12接到sw2
推荐度:
点击下载文档文档为doc格式
31vwo19n0x55mbv23rb17u3cm9b9nu004ju
领取福利

微信扫码领取福利

微信扫码分享