交换机路由器配置文档.docx

上传人:b****8 文档编号:9408510 上传时间:2023-05-18 格式:DOCX 页数:25 大小:241.41KB
下载 相关 举报
交换机路由器配置文档.docx_第1页
第1页 / 共25页
交换机路由器配置文档.docx_第2页
第2页 / 共25页
交换机路由器配置文档.docx_第3页
第3页 / 共25页
交换机路由器配置文档.docx_第4页
第4页 / 共25页
交换机路由器配置文档.docx_第5页
第5页 / 共25页
交换机路由器配置文档.docx_第6页
第6页 / 共25页
交换机路由器配置文档.docx_第7页
第7页 / 共25页
交换机路由器配置文档.docx_第8页
第8页 / 共25页
交换机路由器配置文档.docx_第9页
第9页 / 共25页
交换机路由器配置文档.docx_第10页
第10页 / 共25页
交换机路由器配置文档.docx_第11页
第11页 / 共25页
交换机路由器配置文档.docx_第12页
第12页 / 共25页
交换机路由器配置文档.docx_第13页
第13页 / 共25页
交换机路由器配置文档.docx_第14页
第14页 / 共25页
交换机路由器配置文档.docx_第15页
第15页 / 共25页
交换机路由器配置文档.docx_第16页
第16页 / 共25页
交换机路由器配置文档.docx_第17页
第17页 / 共25页
交换机路由器配置文档.docx_第18页
第18页 / 共25页
交换机路由器配置文档.docx_第19页
第19页 / 共25页
交换机路由器配置文档.docx_第20页
第20页 / 共25页
亲,该文档总共25页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

交换机路由器配置文档.docx

《交换机路由器配置文档.docx》由会员分享,可在线阅读,更多相关《交换机路由器配置文档.docx(25页珍藏版)》请在冰点文库上搜索。

交换机路由器配置文档.docx

交换机路由器配置文档

Boson实验1:

划分VLAN

Boson软件是我们学习网络原理和网络配置比较好的一款模拟软件。

通过它我们将一些枯燥的描述的文字问题,付诸于实践。

今后,将会陆续介绍一些个人收集或自编的Boson实验。

(为了方便起见,将实验目的、实验内容、实验准备省略,直接介绍实验步骤)

一、网络拓扑

在BosonNetworkDesigner中设计如上拓扑图(交换机为2900系列2950)

二、实验步骤

1、配置PC机IP地址

4台主机分别设置为192.168.1.2——1921.68.1.5;子网掩码均为255.255.255.0;默认网关均为192.168.1.1。

打开BosonNetsmin后,在eStations中选择PC1,回车,在命令行输入winipcfg,打开图形化窗口,配置IP地址如下:

上述为主机A配置过程,其他主机配置方法雷同。

配置完成后,各主机间互ping对方IP地址可通。

2、配置交换机划分VLAN

switch>en

switch#conft

switch(config)#hostnameSwtich1

Swtich1(config)#exit

Swtich1#vlandatabase

Swtich1(vlan)#vlan2

Swtich1(vlan)#vlan3

Swtich1(vlan)#exit

Swtich1#conft

Swtich1(config)#interfacef0/1

Swtich1(config-if)#switchportaccessvlan2

Swtich1(config-if)#interfacef0/2

Swtich1(config-if)#switchaccessvlan2

Swtich1(config)#interfacefa0/7

Swtich1(config-if)#switchportaccessvlan3

Swtich1(config-if)#interfa0/8

Swtich1(config-if)#swaccvlan3

Swtich1(config-if)#end

Swtich1#showvlanbrief

VlanNameStatusPorts

-------  --------  ----------  ------------------------

1     defaultActiveF0/3,F0/4,F0/5,F0/6

2     Vlan02ActiveF0/1,F0/2

3     Vlan03ActiveF0/7,F0/8

1002fddi-dActive

1004fnet-dActive

VLANTypeSAID       MTU

-------------------------------------

1       enet100001   1500

1002fddi  101002   1500

1002fnet  101003   1500

3、测试网络可通性

从主机A测试ping主机B通(因为在同一vlan中)

从主机A测试ping主机C不通(因为在不同vlan中)

 

Boson实验2:

VLAN、VTP和TRUNK

Boson作为一款经典的模拟器软件,深受大家喜爱。

虽然现在有dynamips模拟器,据说更好使。

不过boson模拟一些基本实验还是没问题的,而且关于Boson的教程目前网络中有很多。

绘制实验拓扑图

首先,利用BosonNetworkDesigner绘制实验网络拓扑图。

绘制好的拓扑图如图所示。

      

在绘图过程中请注意,按照“够用为度”的原则,这里我们可以选择2950-12作为交换机型号。

同时,将两台交换机的快速以太网接口fastethernet0/12连接起来。

将Host1接入SW1的fe0/1,Host2接入SW1的fe0/2,Host3接入SW2的fe0/1,Host4接入SW2的fe0/2。

2.配置交换机基本参数

在绘制完实验拓扑图后,可以将其保存并装入BosonNetSim中开始实验配置。

通过BosonNetSim中的工具栏按钮“eSwitches”选择“SW1”并按照下面的过程进行交换机基本参数的配置:

Switch>

Switch>en

Switch#conft

Switch#hostSW1

SW1(config)#intvlan1

SW1(config-if)#ipadd192.168.0.1255.255.255.0

SW1(config-if)#noshut

通过BosonNetSim中的工具栏按钮“eSwitches”选择“SW2”并按照下面的过程进行交换机基本参数的配置:

Switch>

Switch>en

Switch#conft

Switch(config)#hostSW2

SW2(config)#intvlan1

SW2(config-if)#ipadd192.168.0.2255.255.255.0

SW2(config-if)#noshut

3.配置交换机基本参数

通过BosonNetSim中的工具栏按钮“eStation”选择“Host1”并按照下面的过程进行PC机基本参数的配置:

ipconfig/ip192.168.0.11255.255.255.0

同理配置Host2,Host3,Host4

分别为:

ipconfig/ip192.168.0.22255.255.255.0

ipconfig/ip192.168.0.33255.255.255.0

ipconfig/ip192.168.0.44255.255.255.0

完成后,每个主机可以分别ping两个交换机的IP和另外三个主机的IP,这时均能够Ping通,因为它们在同一个vlan下,两个交换机也在同一个vlan1下。

4.配置SW1、SW2的TRUNK、VTP和VLAN

选择“SW1”并按照下面的过程进行交换机基本参数的配置:

SW1#conft

SW1(config)#intf0/12

SW1(config-if)#switchportmodetrunk

SW1(config-if)#exit

选择“SW2”并按照下面的过程进行交换机基本参数的配置:

SW2(config-if)#intf0/12

SW2(config-if)#switchportmodetrunk

SW2(config-if)#exit

选择交换机”SW1”并配置、测试VTP信息,如下:

SW1#conft

SW1(config)#vtpmodeserver

SW1(config)#vtpdomainhbcf

SW1(config)#end

SW1#showvtpstatus        查看vtp信息

选择交换机”SW2”并配置、测试VTP信息,如下:

SW2#conft

SW2(config)#vtpmodeclient

SW2(config)#vtpdomainhbcf

SW2(config)#end

SW2#showvtpstatus       查看vtp信息

选择“SW1”并按照下面的过程进行交换机基本参数的配置:

SW1#vlandatabase

SW1(vlan)#vlan10nametest10

VLAN10added:

   Name:

test10

SW1(vlan)#vlan20nametest20

VLAN20added:

Name:

test20

SW1(vlan)#exit

SW1#conft

SW1(config)#intf0/1

SW1(config-if)#switchportaccessvlan10

SW1(config-if)#intf0/2

SW1(config-if)#switchportaccessvlan20

SW1(config-if)#end

SW1#shvlanbrief                  查看vlan信息

选择“SW2”并按照下面的过程进行交换机基本参数的配置:

SW2#shvlan                     查看vlan信息

SW2#conft

SW2(config)#intf0/1

SW2(config-if)#switchportaccessvlan10

SW2(config-if)#intf0/2

SW2(config-if)#switchportaccessvlan20

然后分别ping主机到主机的连通性

 

boson实验3:

单臂路由实验

一、网络拓扑图

链接说明:

router1的fastethernet0/0与switch1的fastethernet0/1相连

switch1的fastethetnet0/2与PC1相连

switch1的fastethernet0/3与PC2相连

二、配置步骤

(拓扑:

PC1和PC2分别连接着交换机的F0/2和F0/3接口,交换机的F0/1接口连接着路由器的F0/0接口。

PC1和PC2分别属于VLAN2和VLAN3。

router我用的是2620,交换机我用的是2950。

下面是它的具体配置。

首先把两台PC的地址配上,这里PC1的地址为192.168.1.2网关地址为192.168.1.1

PC2的地址为192.168.2.2,网关地址为192.168.2.1。

这里的网关地址是路由器匹配VLAN的子接口的地址。

PC1:

ipconfig/ip192.168.1.2255.255.255.0

ipconfig/dg192.168.1.1

PC2:

ipconfig/ip192.168.2.2255.255.255.0

ipconfig/dg192.168.2.1

(让两台PC在不同的网段)

switch1:

en

vlandatabase

vlan2namevlanpc1

vlan3namevlanpc2

exit

configt

intf0/2

switchportaccessvlan2

intf0/3

switchportaccessvlan3

intf0/1

switchportmodetrunk

switchporttrunkencapsulationdot1q

end

注:

因为现在只有一台交换机,所以VTP不用配置,但是当超过一台交换机的时候一定要配置VTP。

router1:

en

configt

intf0/0

noshut

intf0/0.1配置子接口,协议类型为cisco专用的dot1q

encapsulationdot1q2

ipaddress192.168.1.1255.255.255.0

intf0/0.2

encapsulationdot1q3

ipaddress192.168.2.1255.255.255.0

end

这样单臂路由就配好了,现在可以到PC1里面测试:

ping192.168.2.2PC2里面测试:

ping192.168.1.2如果通了就表示成功了。

 

Boson实验4:

静态路由的配置

发现已有网友给大家分享了。

就在这里借花献佛,借用过来,希望可以更多的人从中收益。

感谢。

一、实验拓扑图

二、具体配置如下:

router1的配置:

PressEntertoStart

Router>

Router>en

Router#conft

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

Router(config)#hostnamerouter1

router1(config)#interfacee0

router1(config-if)#ipaddress192.168.1.2255.255.255.0

router1(config-if)#noshut

%LINK-3-UPDOWN:

InterfaceEthernet0,changedstatetoup

router1(config-if)#interfaces0

router1(config-if)#ipaddress192.168.2.1255.255.255.0

router1(config-if)#clockrate6400                  //clockrate是dce设备给dte设备提供时钟频率的,需要在dce里面设置,而另外的一个路由器里面则不用设置

router1(config-if)#noshut

%LINK-3-UPDOWN:

InterfaceSerial0,changedstatetoup

router1(config-if)#end

%LINK-3-UPDOWN:

InterfaceSerial0,changedstatetodown

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceSerial0,changedstatetodown

router1#configt

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

router1(config)#iproute192.168.3.0255.255.255.0192.168.2.1  //设定静态路由

router1(config)#iproute192.168.2.0255.255.255.0192.168.2.1

router1(config)#end

router1#copyrunningstartup

Destinationfilename[startup-config]?

Buildingconfiguration...

[OK]

%LINK-3-UPDOWN:

InterfaceSerial0,changedstatetoup

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceSerial0,changedstatetoup

router2的配置:

PressEntertoStart

Router>en

Router#conft

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

Router(config)#interfacee0

Router(config-if)#end

Router#configt

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

Router(config)#hostnamerouter2

router2(config)#interfaces0

router2(config-if)#ipaddress192.168.2.2255.255.255.0

router2(config-if)#noshut

%LINK-3-UPDOWN:

InterfaceSerial0,changedstatetoup

router2(config-if)#interfaces0

router2(config-if)#interfacee0

router2(config-if)#ipaddress192.168.3.1255.255.255.0

router2(config-if)#noshut

%LINK-3-UPDOWN:

InterfaceEthernet0,changedstatetoup

router2(config-if)#end

router2#configt

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

router2(config)#iproute192.168.1.0255.255.255.0192.168.2.2

router2(config)#iproute192.168.2.0255.255.255.0192.168.2.2

router2(config)#end

router2#copyrunningstartup

Destinationfilename[startup-config]?

Buildingconfiguration...

[OK]

router2#ping192.168.1.2

Typeescapesequencetoabort.

Sending5,100-byteICMPEchosto192.168.1.2,timeoutis2seconds:

!

!

!

!

!

Successrateis100percent(5/5),round-tripmin/avg/max=1/2/4ms

router2#ping192.168.2.1

Typeescapesequencetoabort.

Sending5,100-byteICMPEchosto192.168.2.1,timeoutis2seconds:

!

!

!

!

!

Successrateis100percent(5/5),round-tripmin/avg/max=1/2/4ms

router2#ping192.168.2.2

Typeescapesequencetoabort.

Sending5,100-byteICMPEchosto192.168.2.2,timeoutis2seconds:

!

!

!

!

!

Successrateis100percent(5/5),round-tripmin/avg/max=1/2/4ms      //路由器之间试ping了一下,可以ping通,接下来配pc

pc1的配置如下:

BosonBOSS5.0

Copyright1998-2003BosonSoftware,Inc.

Usethecommandhelptogetstarted

PressEntertobegin

C:

>ipconfig/ip192.168.1.1255.255.255.0                    //此时尚未指定网关

C:

>ping192.168.2.1

Pinging192.168.2.1with32bytesofdata:

Requesttimedout.

Requesttimedout.

Requesttimedout.

Requesttimedout.

Requesttimedout.

Pingstatisticsfor192.168.2.1:

    Packets:

Sent=5,Received=0,Lost=5(100%loss),//未指定网关时不能ping通router1的s0,我理解为找不到出口,不知准确否

Approximateroundtriptimesinmilli-seconds:

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

C:

>ipconfig/dg192.168.1.2                                 //指定网关为与本机直连的router1的e0口

C:

>ping192.168.1.2

Pinging192.168.1.2with32bytesofdata:

Replyfrom192.168.1.2:

bytes=32time=60msTTL=241

Replyfrom192.168.1.2:

bytes=32time=60msTTL=241

Replyfrom192.168.1.2:

bytes=32time=60msTTL=241

Replyfrom192.168.1.2:

bytes=32time=60msTTL=241

Replyfrom192.168.1.2:

bytes=32time=60msTTL=241

Pingstatisticsfor192.168.1.2:

    Packets:

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

Approximateroundtriptimesinmilli-seconds:

    Minimum=50ms,Maximum=60ms,Average=55ms

C:

>ping192.168.2.1

Pinging192.168.2.1with32bytesofdata:

Replyfrom192.168.2.1:

bytes=32time=60msTTL=241

Replyfrom192.168.2.1:

bytes=32time=60msTTL=241

Replyfrom192.168.2.1:

bytes=32time=60msTTL=241

Replyfrom192.168.2.1:

bytes=32time=60msTTL=241

Replyfrom192.168.2.1:

bytes=32time=60msTTL=241

Pingstatisticsfor192.168.2.1:

    Packets:

Sent=5,Received=5,Lost=0(0%loss),     //指定网关后可以ping通s0口了

Approximateroundtriptimesinmilli-seconds:

    Minimum=50ms,Maximum=60ms,Average=55ms

C:

>ping192.168.2.2

Pinging192.168.2.2with32bytesofdata:

Replyfrom192.168.2.2:

bytes=32time=60msTTL=241

Replyfrom192.168.2.2:

bytes=32time=60msTTL=241

Replyfrom192

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

当前位置:首页 > 农林牧渔 > 林学

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

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