当前位置:文档之家› 实验报告三层交换机静态路由

实验报告三层交换机静态路由

实验报告13核心路由交换技术班级【实验目的】理解三层交换机进行路由的原理和具体实现拓扑 理解三层交换机静态路由的配置方法 【背景描述】当两台三层交换机级联时,为了保证每台交换机上所连接的网段可以和另一台交换 机上连接的网段互相通信,最简单的方法就是静态路由。

【实现功能】在三层交换机上用静态路由实现网络互连。

【使用设备】【工作原理】1.在交换机A 和交换机B 上分别划分基于端口的 VLAN>2.测试没有静态路由与有静态路由 PC 机之间的连通性。

【注意事项】该实验所需要的简单实验拓扑。

请用模拟器做完所有的实验步骤之后再截图,要求在图上标注配置,包括三层交换机的各个接口、对应ip 和掩码;PC 的网关、ip 和掩码。

课程名称 实验名称三层交换机静态路由配置姓名学号 实 验 目 的实 验 内 容实 验 拓 扑 图本次实验步骤用思科模拟器。

使用两台三层交换机 SwitchA 、SwitchB ,之间用交叉线连接 F0/24端口。

四台PC 用 做测试。

实验步骤:参看电子书一一CCNA 指导手册实验三十八。

步骤1先根据描述搭建拓扑、进行连线。

两台三层交换机 SwitchA 、SwitchB ,之间用交叉线连接F0/24端口注意:在做与路由相关的实验中,对于测试 PC 往往需要正确配置网关,才能使用网络设备的路由功能。

步骤2配置交换机的VLAN 信息在 Switch-A 上划分 vian10、vlan20、vian100Switch-A(co nfig>#vla n 10Switch-A(co nfig>#i nt range f0/1 - 8Switch-A(c on fig-if-ra nge>#switchport mode accessSwitch-A(c on fig-if-ra nge>#switchport access via n 10 Switch-A(c on fig-if-ra nge>#exit Switch-A(config>#vian 20Switch-A(co nfig>#i nt range fO/9 - 16Switch-A(c on fig-if-ra nge>#switchport mode access Switch-A(c on fig-if-ra nge>#switchport access via n 20 Switch-A(con fig-if-ra nge>#exit Switch-A(co nfig>#vla n 100 Switch-A(co nfig># int fO/24CQ/E4 192.169.1DO.SJ/1m. L&E.3fl.f1t^2.16«.2D.1011921 IH . aiFC-FT PC6192. LttB.4D. 1192.160 30 L01lffi.lBB.3QlPC1 : 192.168.10.101/24网关: 192.168.10.1, 用直连线接 SwitchA 的 f0/1 接口。

PC2 : 192.168.20.101/24 网关: 192.168.20.1,用直连线接 SwitchA 的 f0/9 接口 PC3: 192.168.30.101/24 网关: 192.168.30.1,用直连线接 SwitchB 的 f0/1 接口 PC4: 192.168.40.101/24 网关:192.168.40.1, 用直连线接SwitchB 的 f0/9 接口。

实验步骤及命令清单192.168 U1101 192.16B 10.1PC-PTfO/11^168.104f0/9LffifD/9l£,h0.4Q .PCFT102 】在Switch-B 上配置虚拟接口vlan30、vlan40、vlan101 的ip Switch-B(co nfig># in t vlan 30Switch-B(c on fig-if>#ip add 192.168.30.1 255.255.255.0Switch-B(c on fig-if># no sh Switch-B(co nfig-if>#iin t vlan 40Switch-B(config-if>#ip add 192.168.40.1 255.255.255.0 Switch-B(c on fig-if># no sh Switch-B(co nfig-if>#i nt vlan 101Switch-B(config-if>#ip add 192.168.100.2 255.255.255.0 Switch-B(c on fig-if># no sh验证测试 Switch-B ping PC1 192.168.30.101 截图Switc h-B #pi ng 192.169.30.101Type escape sequence to abort ・Sending LOO-byte ICMP Echos to 192. 168 V lOJ timeout : Success rate is 100 poifcGllt (5/f round-trip nin/avg/max :验证测试 Switch-B ping PC2 192.168.40.101 截图SwitGh-B#ping 1^2.168.40.101Type escape sequence to abort ・Sending 100-byte ICMP Echos to 192.163,40,101, timeout :IIII■ ■ w ■ ■Success rats is 100 peircont (5/5) F round-t rip min/avg/ma^ =步骤4 :验证PC 间是否连通? 验证测试PC1 ping PC2PC>pi ng 192.168.20.101截图192一丄SB. 20.101192-丄G9.20.101 TJit-kL 92 byt 电审 o f dat 亘:PC>pi ng 192.168.30.101截图Heply from 19Z. 101; bytes=3ZJeply tr cm J3E.L60.ZD. 101; byt*s=3Z Jsply tr om 19E.168.20. 1口丄:Beply from 19Z.168.20. 101:byt«s -3ZTTL^IZ?TTLs-lZ?TTL=1Z7 TTIi-lZ7(0% loss> ,E 0如旨:验证测试PC1 ping PC3t i 皿总三石Em 乐t ime"63iH3for 丄 -丄 5S . 20.1OL:P&ck ets 2 Sent = 4^ R&te ived. — 4 r L Oit = OAppro K 1 mate round, txip titnie E in mx 1Li - seconds: = 47&s f Haxd-UkvoL =fAv e x age =查看路由表,进一步分析上一步的现象原因。

Switch-A#sh ip routeSwitch-B#sh ip routeE#sh6w ipCodes: C - connected^ S - st a tier I - I GRP, R - RIE, M - n D - EIGRP f EX - EIGRP €Kterna.l f0 - OSPF f IA - OSPE N1 - OSEF NSSAexternal type l f n2 - OSEF NSSA ©Kte El - OSPF eytsrnal type l fE2 - OEPF external type i - IS-IS^ Ll - IS-IS level-l f L2-IS-IS level-2, * - candidate default, U - per-user static route, cP - peciodic d^wnlQad^d otiu 匚out召Gsiteway of last 匚令吕。

匚t is net setC 192.168.3Q.Q/24 is di匚音说丄y t音日F VI口3DC 192,16B.40*0/24 is directly connected, Vlan40C 192 168 » 100 . CI/24 is direct ly con nected f Vian 101回答问题:分析原因。

配置到这一步,你应该可以猜到,下面的步骤与实验步骤5:配置静态路由12中路由器的配置是一样的。

请填空完善命令。

Switch-A(config>#ip route 192.168.30.0 255.255.255.0 192.168.100.2 Switch-A(config>#ip route192.168.40.0 255.255.255.0 192.168.100.2 验证配置:Switch-A#sh ip routeSwitch-Aip rcu七皂: C —corLix^Grted f S - s t ati c f工一工GRPf R - RI P f D -EIGRP; EX - EIGRP external^ O - CSPF^ IA Ml - O£PF MESAexternal type 1, M2 - CSPE N5S- El - OS PF external typ& 1/E2 - OS PF external i - TS-IS, LI - TS-IS L2 - TS-IS lev* - candidate defau丄U - pe r-us e r 弓七iu ro' P -periodic downloaded static routeGateway of last resort is not setC 192.168.10.0/24 is di rectly connec+■包VLanlQC 192.168.20. 0/24 is Tit;ect ly connected f¥丄an20S 192.168.30, 0/24 [1/0] via 192.168 ・1DD.:2S 192.168.40.0/24 [1/0] via 192.168.100.2号石口/£匚段Swit^li-B^show ip routsCodes: C - connected^ S - st a tier I - I GRP, R - RIE, M - nD - EIGRP f EX - E工GRP external, 0 - OSPF f IA - OSPE Hl -QSEF NSSA e^te匚口已1 type If w2 - OSEF NSSA OKte El - OSPFeytsrnal type l f E2 - O£PF e^terrLal type i - IS-IS^ Ll -IS'IS level-1, L2-IS-IS level-2, * - candidate default F U- psr-user static routa, c F - d QwnlQad^d statiu tQute Gateway of las t is netC 192.168・3U・ 0/24 is difQ-Ttly szgt音日十Vl^口30C 192,16B.40.0/24 is directly connected, Vlan40C 192^ 168» 100. 0/24 is directly sn nected f Vian 101验证所有PC之间是否连通。

相关主题