项目测试3三层交换机VLAN 间路由参考答案Word下载.docx

上传人:b****2 文档编号:5224027 上传时间:2023-05-04 格式:DOCX 页数:13 大小:76.25KB
下载 相关 举报
项目测试3三层交换机VLAN 间路由参考答案Word下载.docx_第1页
第1页 / 共13页
项目测试3三层交换机VLAN 间路由参考答案Word下载.docx_第2页
第2页 / 共13页
项目测试3三层交换机VLAN 间路由参考答案Word下载.docx_第3页
第3页 / 共13页
项目测试3三层交换机VLAN 间路由参考答案Word下载.docx_第4页
第4页 / 共13页
项目测试3三层交换机VLAN 间路由参考答案Word下载.docx_第5页
第5页 / 共13页
项目测试3三层交换机VLAN 间路由参考答案Word下载.docx_第6页
第6页 / 共13页
项目测试3三层交换机VLAN 间路由参考答案Word下载.docx_第7页
第7页 / 共13页
项目测试3三层交换机VLAN 间路由参考答案Word下载.docx_第8页
第8页 / 共13页
项目测试3三层交换机VLAN 间路由参考答案Word下载.docx_第9页
第9页 / 共13页
项目测试3三层交换机VLAN 间路由参考答案Word下载.docx_第10页
第10页 / 共13页
项目测试3三层交换机VLAN 间路由参考答案Word下载.docx_第11页
第11页 / 共13页
项目测试3三层交换机VLAN 间路由参考答案Word下载.docx_第12页
第12页 / 共13页
项目测试3三层交换机VLAN 间路由参考答案Word下载.docx_第13页
第13页 / 共13页
亲,该文档总共13页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

项目测试3三层交换机VLAN 间路由参考答案Word下载.docx

《项目测试3三层交换机VLAN 间路由参考答案Word下载.docx》由会员分享,可在线阅读,更多相关《项目测试3三层交换机VLAN 间路由参考答案Word下载.docx(13页珍藏版)》请在冰点文库上搜索。

项目测试3三层交换机VLAN 间路由参考答案Word下载.docx

3.配置三层vlan间通信,配置vlan100地址:

192.168.1.1配置vlan200地址:

192.168.2.1

4.配置PC机地址:

ip地址,子网掩码,网关。

5.测试三层交换机两个不同vlan互访(截图)。

四、测试步骤:

按照要求完成各题、并写出主要命令,并粘贴截图,完成测试项目报告。

五、附加题(20分)

用Cisco模拟软件实现访问互联网NAPT配置

组网需求:

根据拓扑图配置动态NAPT地址转换,路由器R2接口F0/0与外网相连,外网有Web服务器地址为100.1.2.16,假设公网IP地址为172.16.1.11,在路由器R1上进行配置NAPT,并设置缺省路由指向路由器R2接口S2/0,实现内网主机PC0,PC1,PC2对Internet的访问。

拓扑图:

测试步骤:

1、路由器R1和R2基本配置.(10分)

2、在路由器R1配置动态NAPT端口地址转换,实现对Internet的访问。

编制部门:

大连计算机学校网络组

参考答案

实训操作:

环境搭建

使用反转线将PC机的串口与交换机的Console口连接,通过Console口搭建本地配置环境。

通过Console口搭建配置环境。

建立本地配置环境,将PC机(或终端)的串口通过配置电缆与以太网交换机的Console口连接,确定通过Console口正确配置以太网交换机VLAN1接口的IP地址(VLAN1为交换机的缺省VLAN)。

通过Console口搭建本地配置环境

PC机上运行终端仿真程序

在PC机上运行终端仿真程序(Windows2000/WindowsXP的超级终端),设置终端通信参数:

传输速率为9600bit/s、8位数据位、1位停止位、无校验和无流控。

以太网交换机上电,PC机终端上将显示以太网交换机自检信息,自检结束后提示用户键入回车,之后将出现命令行提示符。

<

H3C>

三层交换机VLAN路由的配置

1、在交换机(S3610)上创建Vlan100、Vlan200,并将E1/0/1-E1/0/10端口划分到Vlan100中,将E1/0/11-E1/0/20端口划分到Vlan200中。

sys

SystemView:

returntoUserViewwithCtrl+Z.

[H3C]vlan100

[H3C-vlan100]porte1/0/1toe1/0/10

[H3C-vlan100]quit

[H3C]vlan200

[H3C-vlan200]porte1/0/11toe1/0/20

[H3C-vlan200]quit

[H3C]disvlanall

VLANID:

1

VLANType:

static

RouteInterface:

notconfigured

Description:

VLAN0001

Name:

TaggedPorts:

none

UntaggedPorts:

Ethernet1/0/21Ethernet1/0/22Ethernet1/0/23

Ethernet1/0/24

GigabitEthernet1/1/1GigabitEthernet1/1/2GigabitEthernet1/1/3

GigabitEthernet1/1/4

100

static

notconfigured

VLAN0100

none

Ethernet1/0/1Ethernet1/0/2Ethernet1/0/3

Ethernet1/0/4Ethernet1/0/5Ethernet1/0/6

Ethernet1/0/7Ethernet1/0/8Ethernet1/0/9

Ethernet1/0/10

200

VLAN0200

Ethernet1/0/11Ethernet1/0/12Ethernet1/0/13

Ethernet1/0/14Ethernet1/0/15Ethernet1/0/16

Ethernet1/0/17Ethernet1/0/18Ethernet1/0/19

Ethernet1/0/20

2、设置三层交换机VLAN间通信。

在交换机H3C上创建Vlan100、Vlan200并配置IP地址,查看三层交换机路由表。

[H3C]interfaceVlan-interface100

[H3C-Vlan-interface100]ipaddress192.168.1.124

%Apr2612:

09:

12:

1132000H3CIFNET/4/UPDOWN:

LineprotocolontheinterfaceVlan-interface100isUP

[H3C-Vlan-interface100]undoshutdown

InterfaceVlan-interface100isnotshutdown

[H3C-Vlan-interface100]quit

[H3C]interfaceVlan-interface200

[H3C-Vlan-interface200]ipaddress192.168.2.124

LineprotocolontheinterfaceVlan-interface200isUP

[H3C-Vlan-interface100]undoshutdown

InterfaceVlan-interface200isnotshutdown

[H3C-Vlan-interface200]quit

[H3C]

[H3C]disiprouting-table

RoutingTables:

Public

Destinations:

6Routes:

6

Destination/MaskProtoPreCostNextHopInterface

127.0.0.0/8Direct00127.0.0.1InLoop0

127.0.0.1/32Direct00127.0.0.1InLoop0

192.168.1.0/24Direct00192.168.1.1Vlan100

192.168.1.1/32Direct00127.0.0.1InLoop0

192.168.2.0/24Direct00192.168.2.1Vlan200

192.168.2.1/32Direct00127.0.0.1InLoop0

PC机配置地址,PC机需要设置网关。

将PC1和PC2的默认网关设置为:

192.168.1.1

将PC3和PC4的默认网关设置为:

192.168.2.1

任务测试:

在PC1上ping网关,pingPC3,测试如下:

C:

\DocumentsandSettings\107-101>

ping192.168.2.1

Pinging192.168.2.1with32bytesofdata:

Replyfrom192.168.2.1:

bytes=32time=4msTTL=255

bytes=32time=1msTTL=255

Pingstatisticsfor192.168.2.1:

Packets:

Sent=4,Received=4,Lost=0(0%loss),

Approximateroundtriptimesinmilli-seconds:

Minimum=1ms,Maximum=4ms,Average=1ms

ping192.168.2.3

Pinging192.168.2.3with32bytesofdata:

Replyfrom192.168.2.3:

bytes=32time<

1msTTL=127

Pingstatisticsfor192.168.2.3:

Minimum=0ms,Maximum=0ms,Average=0ms

测试结果:

不同VLAN100、VLAN200下的主机PC1,PC3可以互相PING通,三层交换机不同VLAN内的主机之间可以互相通信,三层交换机实现VLAN互访。

附加题(20分)

1.1路由器配置

第1步:

路由器R2的基本配置

Router>

en

Router#conft

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

Router(config)#intf0/0

Router(config-if)#ipaddress100.1.2.1255.255.255.0

Router(config-if)#noshutdown

Router(config-if)#ints2/0

Router(config-if)#ipaddress172.16.1.12255.255.255.0

第2步:

路由器R1的基本配置

Router(config-if)#ipaddress192.168.1.1255.255.255.0

Router(config-if)#ipaddress172.16.1.11255.255.0.0

Router(config-if)#clockrate64000

%LINK-5-CHANGED:

InterfaceSerial2/0,changedstatetoup

Router(config-if)#

第3步:

路由器R1内部及外部端口

定义F0/0为内网接口

Router(config-if)#intf0/0

Router(config-if)#ipnatinside

Router(config-if)#exit

定义s2/0为外网接口

Router1(config)#interfasts2/0

Router1(config-if)#ipnatoutside

Router1(config-if)#exit

第4步:

定义内部全局地址池

地址池名称为to-net,范围为从172.16.1.11到172.16.1.11

Router(config)#ipnat?

insideInsideaddresstranslation

outsideOutsideaddresstranslation

poolDefinepoolofaddresses

Router(config)#ipnatpool?

WORDPoolname

Router(config)#ipnatpoolto-net?

A.B.C.DStartIPaddress

Router(config)#ipnatpoolto-net172.16.1.11?

A.B.C.DEndIPaddress

Router(config)#ipnatpoolto-net172.16.1.11172.16.1.11?

netmaskSpecifythenetworkmask

Router(config)#ipnatpoolto-net172.16.1.11172.16.1.11netmask255.255.0.0?

<

cr>

Router(config)#ipnatpoolto-rnet172.16.1.11172.16.1.11netmask255.255.0.0

第5步:

定义允许转换的地址

允许192.168.0.0网段地址转换

Router(config)#access-list100permit?

eigrpCisco'

sEIGRProutingprotocol

greCisco'

sGREtunneling

icmpInternetControlMessageProtocol

ipAnyInternetProtocol

ospfOSPFroutingprotocol

tcpTransmissionControlProtocol

udpUserDatagramProtocol

Router(config)#access-list100permitip?

A.B.C.DSourceaddress

anyAnysourcehost

hostAsinglesourcehost

Router(config)#access-list100permitip192.168.0.0?

A.B.C.DSourcewildcardbits

Router(config)#access-list100permitip192.168.0.00.0.255.255?

A.B.C.DDestinationaddress

anyAnydestinationhost

hostAsingledestinationhost

Router(config)#access-list100permitip192.168.0.00.0.255.255100.1.2.16?

A.B.C.DDestinationwildcardbits

Router(config)#access-list100permitip192.168.0.00.0.255.255100.1.2.160.0.255.255?

dscpMatchpacketswithgivendscpvalue

precedenceMatchpacketswithgivenprecedencevalue

Router(config)#access-list100permitip192.168.0.00.0.255.255100.1.2.160.0.255.255

第6步:

建立映射关系

Router(config)#ipnatinside?

sourceSourceaddresstranslation

Router(config)#ipnatinsidesource?

listSpecifyaccesslistdescribinglocaladdresses

staticSpecifystaticlocal->

globalmapping

Router(config)#ipnatinsidesourcelist100?

interfaceSpecifyinterfaceforglobaladdress

poolNamepoolofglobaladdresses

Router(config)#ipnatinsidesourcelist100pool?

WORDNamepoolofglobaladdresses

Router(config)#ipnatinsidesourcelist100poolto-net?

overloadOverloadanaddresstranslation

Router(config)#ipnatinsidesourcelist100poolto-netoverload

第7步:

配置指向外网缺省路由,设置缺省路由指向路由器R2接口S2/0。

Router(config)#iproute100.0.0.0255.0.0.0172.16.1.12

1.2交换机配置

三层交换机配置:

Switch>

Switch#conft

Switch(config-if)#intvlan1

Switch(config-if)#ipaddress192.168.1.2255.255.255.0

Switch(config-if)#end

Switch#1.3、配置主机

配置PC0

IPAddress............:

192.168.1.10

SubnetMask...........:

255.255.255.0

DefaultGateway.........:

192.168.1.1

配置PC1

192.168.1.11

192.168.1.1

PC0主机,PC1主机访问外网服务器PC4。

PC0>

ping100.1.2.16

Pinging100.1.2.16with32bytesofdata:

Requesttimedout.

Replyfrom100.1.2.16:

bytes=32time=140msTTL=125

bytes=32time=125msTTL=125

bytes=32time=141msTTL=125

Pingstatisticsfor100.1.2.16:

Sent=4,Received=3,Lost=1(25%loss),

Minimum=125ms,Maximum=141ms,Average=135ms

PacketTracerPCCommandLine1.0

在路由器查看NAPT映射关系(先建立访问会话)

Router#showipnattranslations

ProInsideglobalInsidelocalOutsidelocalOutsideglobal

icmp172.16.1.11:

2192.168.1.10:

2100.1.2.16:

2

3192.168.1.10:

3100.1.2.16:

4192.168.1.10:

4100.1.2.16:

1192.168.1.12:

1100.1.2.16:

1

2192.168.1.12:

Router#Router

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 法律文书 > 调解书

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2