基本(路由交换操作题)_第1页
基本(路由交换操作题)_第2页
基本(路由交换操作题)_第3页
基本(路由交换操作题)_第4页
基本(路由交换操作题)_第5页
已阅读5页,还剩16页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、基本一 telnet实验(P122)(1) 如图pcf0/2,RF0/1(2) 配置路由器以太网接口IP地址RouterenRouter#configute terminalRouter(config)#interface fastethernet 0/0Router(config-if)#ip add 192.168.1.254 255.255.255.0Router(config-if)#no shutdown(3) 配置路由器telnet登录密码(这里用密码”123”)Router(config)#line vty 0 4Router(config-line)#password 123(

2、4) 配置路由器用户级别1和15的密码 (这里用123)Router(config)#enable secret level 1 5 123Router(config)#enable secret level 15 5 123(5) 配置以太网中计算机的IP地址:192.168.1.1(6) 在命令提示符中输入telnet 192.168.1.254二 PPP协议封装实验(P128)(1) RouterA的S0/0作为DCE端,IP:10.1.1.1/30RouterB的S0/0作为DTE端,IP:10.1.1.2/30(2)路由器IP的配置RouterAenRouterA#conf tRou

3、terA(config)#int s0/0RouterA(config-if)#ip add 10.1.1.1 255.255.255.252RouterBenRouterB#conf tRouterB(config)#int s0/0RouterB(config-if)#ip add 10.1.1.2 255.255.255.252(3) DCE端配置时钟(ETE端不需要)RouterB(config-if)#clock rate 9600(4) 封装PPP协议RouterA#int s0/0RouterA(config-if)#enc pppRouterB#int s0/0RouterB(

4、config-if)#enc ppp(5) 激活端口RouterA#int s0/0RouterA(config-if)#no shRouterB#int s0/0RouterB(config-if)#no sh三 静态路由实验(P133)广域网的连接采用PPP协议,接口的IP地址分别是10.1.1.1/30和10.1.1.2/30;Router A的F0/0接口所连接局域网网段为:192.168.1.0/24,网关为:192.168.1.254;Router B的F0/0接口所连接局域网网段为:192.168.2.0/24,网关为:192.168.2.254。现要求采用静态路有实现两边局域网

5、之间通信。步骤一:搭建网络坏境步骤二:配置广域网Router A 配置(DCE端):RA(config)#int s0/0RA(config-if)#ip add 10.1.1.1 255.255.255.0RA(config-if)#enc pppRA(config-if)#clock rate 96000RA(config-if)#no shRouter BRB(config)#int s0/0RB(config-if)#ip add 10.1.1.2 255.255.255.0RB(config-if)#enc pppRB(config-if)#no sh步骤三: 配置局域网接口 IP地

6、址 Router A RA(config)#int f0/0RA(config-if)#ip add 192.168.1.254 255.255.255.0RA(config-if)#no shRouter BRA(config)#int f0/0RA(config-if)#ip add 192.168.2.254 255.255.255.0RB(config-if)#no sh步骤四 : 配置静态路由 Router ARA(config)#ip route 192.168.2.0 255.255.255.0 10.1.1.2Router BRB(config)#ip route 192.16

7、8.1.0 255.255.255.0 10.1.1.1步骤五: 配置计算机的 IP地址PC0: IP地址:192.168.1.1 子网掩码 :255.255.255.0 默认网关:192.168.1.254PC1: IP地址:192.168.1.2子网掩码 :255.255.255.0默认网关:192.168.1.254PC2: IP地址:192.168.2.1子网掩码 :255.255.255.0默认网关:192.168.2.254PC3: IP地址:192.168.2.2子网掩码 :255.255.255.0默认网关:192.168.2.254步骤六: 测试步骤七 可以配置默认路由Rou

8、ter ARA(config)#ip route 0.0.0.0 0.0.0.0 10.1.1.2Router BRB(config)#ip route 0.0.0.0 0.0.0.0 10.1.1.1四 动态路由(项目案例一:RIPv1的配置应用)(P133)(1)删除原来的静态路由RouterA的配置:RA(config)#no ip route 192.168.2.0 255.255.255.0 10.1.1.2RouterB的配置:RB(config)#no ip route 192.168.1.0 255.255.255.0 10.1.1.1(2)启动RIPv1进程RA(config

9、)#router ripRB(config)#router rip(3)配置网络宣告RA(config)#network 192.168.1.0RA(config)#network 10.0.0.0RB(config)#network 192.168.2.0RB(config)#network 10.0.0.0(4)查看路由表RA#show ip routeRB#show ip route五 动态路由(项目案例二:RIPv2的配置应用)(P135)接口 IP地址RA S0/010.1.1.1/30RA F0/0192.168.1.126/26RA F0/1192.168.3.126/26RB

10、S0/010.1.1.2/30RB F0/0192.168.2.126/26RB F0/1192.168.4.126/26这样配置的各位!(1) IP配置配置RouterA配置:RA(config)#int f0/0RA(config-if)#ip add 192.168.1.126 255.255.255.192RA(config-if)#int f0/1RA(config-if)#ip add 192.168.3.190 255.255.255.192RA(config-if)#no shRouterB配置:RB(config)#int f0/0RB(config-if)#ip add 1

11、92.168.2.120 255.255.255.192RB(config-if)#int f0/1RB(config-if)#ip add 192.168.4.190 255.255.255.192RB(config-if)#no sh(2)配置RIPV2路由RouterA配置:RA(config)#router ripRA(config-router)#version 2RA(config-router)#network 192.168.1.0RA(config-router)#network 192.168.3.0RA(config-router)#network 10.0.0.0(3)

12、网络宣告RouterB配置:RA(config)#router ripRA(config-router)#version 2RA(config-router)#network 192.168.2.0RA(config-router)#network 192.168.4.0RA(config-router)#network 10.0.0.0六 动态路由(项目案例三:OSPF的配置应用)(P140)接口 IP地址RA S0/020.1.1.1/30RA F0/010.1.1.1/30RB S0/020.1.1.2/30RB F0/030.1.1.1/30HostA:10.1.1.2/30HostB

13、:10.1.1.3/30HostC:30.1.1.2/30HostD:30.1.1.3/30(1) IP配置配置RouterA配置:RA(config)#int s0/0RA(config-if)#ip add 20.1.1.1 255.255.255.252RA(config-if)#clock rate 6400RA(config-if)#no shRA(config-if)#int f0/0RA(config-if)#ip add 10.1.1.1 255.255.255.0RA(config-if)#no shRouterB配置:RB(config)#int s0/0RB(config

14、-if)#ip add 20.1.1.2 255.255.255.252RB(config-if)#no shRB(config-if)#int f0/0RB(config-if)#ip add 30.1.1.1 255.255.255.0RB(config-if)#no sh(2)启用动态路由OSPF协议RA(config)#router ospf 1RA(config-router)#network 10.1.1.0 0.255.255.255 area 0RB(config)#router ospf 1RB(config-router)#network 30.1.1.0 0.255.25

15、5.255 area 0七 端口VLAN配置的应用(P148)交换机SwitchA的f0/1,f0/2,f0/11,f0/12接口分别连接HostA,HostB,HostC和HostD:HostA:192.168.1.21/24HostB:192.168.1.22/24HostC:192.168.1.31/24HostD:192.168.1.32/24(1) 配置交换机端口Switch#conf tSwitch(config)#int f0/1Switch(config-if)#switchport access vlan 20Switch(config)#int f0/2Switch(con

16、fig-if)#switchport access vlan 20Switch(config)#int f0/11Switch(config-if)#switchport access vlan 30Switch(config)#int f0/12Switch(config-if)#switchport access vlan 30(2)测试八 VLAN配置的应用(IEEE802.1Q标准)(P149)VLAN配置的应用如图,交换机switch A和switch B通过F0/12接口相连,其他链接、计算机的IP地址分配、所属的VLAN如下表所示。请对两台交换机进行配置,实现同一VLAN内的计算

17、机可以通信,不同VLAN间的计算机不可以通信。交换机接口所连接的设备IP地址所属VLANSwitchAF0/1HOST A192.168.1.21/24VLAN 20F0/7 HOST B192.168.1.31/24VLAN 30F0/12switch B的F0/12无转发所有VLANSwitch BF0/1HOST C192.168.1.32/24VLAN 30F0/7HOST B192.168.1.22/24VLAN 20F0/12switch A的F0/12 无转发所有VLAN 步骤一:按上图要求将硬件连接好步骤二:根据以上要求将HOST A,HOST B ,HOST C 和HOST

18、D的IP地址配置好。步骤三:用HOST A, HOST B ,HOST C,和HOST D 这4台计算机中任何一台计算机ping 其他计算机,看是否能ping通,如果能ping通进行步骤四,不能ping通则检查以上步骤。步骤四:对交换机命名。Switch A 配置:Switch(config)#host switchASwitchA(config)#Switch B的配置Switch(config)# host switch BSwitch B (config)#步骤五:配置交换机端口Switch A配置:SwitchA(config)#int f0/1switchA(config if )#

19、sw acc vlan 20switchA(config if )#int f0/7switchA(config if )#sw acc vlan 30switchA(config if )#int f0/12switchA(config if )#sw mode trunkSwitch B的配置SwitchB(config)#int f0/1switchB(config if )#sw acc vlan 30switchB(config if )#int f0/7switchB(config if )#sw acc vlan 20switchB(config if )#int f0/12sw

20、itchB(config if )#sw mode turnk步骤六:先用ping测试同一vlan内部计算机通否再用ping测试不同vlan间计算机通否如果测试结果同一vlan内部计算机可以通信,不同vlan间的计算机不能直接通信说明配置成功,否则检查步骤五。本试验中主要通过VLAN跨越交换机实现,掌握IEEE802.1Q VLAN配置的应用九 VLAN间通信配置的应用(P151)(1) 2950switch0 和2950switch1通过f0/12与3560switch交换机F0/1,f0/2连接(2)交换机接口所连接设备IP地址所属vlanSwitchAF0/1HostA192.168.1

21、00.1/24Vlan100F0/123560的f0/1无转发所有vlanSwitchBF0/1HostB192.168.200.1/24Vlan200F0/123560的f0/2无转发所有vlan(3) 设备命名3560switchA的配置:Switch(config)#host 3switchA2950switchA的配置:Switch(config)#host 2switchA2950switchB的配置:Switch(config)#host 2switchB(4) 三层交换机创建vlan 100 vlan 2003switchA#vlan database3switchA(vlan)#vlan 100 name wangluo13switchA(vlan)#vlan 200 name wangluo2(5) vlan虚拟接口地址配置(三层交换3switchA上配置)3switchA(config)#int vlan 1003switchA(config-if)#ip add 192.16

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论