首页 > 其他分享 >6.13

6.13

时间:2024-06-17 14:24:10浏览次数:10  
标签:6.13 router down Switch 172.16 Router config

 

 

五、实验过程:

1、基本配置

1)三层交换机的基本配置

Switch(config)#vlan 10

Switch(config-vlan)#

Switch(config-vlan)#

Switch(config-vlan)#end

Switch#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#interface FastEthernet0/1

Switch(config-if)#

%SYS-5-CONFIG_I: Configured from console by console

Switch(config-if)#exit

Switch(config)#interface FastEthernet0/1

Switch(config-if)#

Switch(config-if)#

Switch(config-if)#switchport access vlan 10

Switch(config-if)#exit

Switch(config)#vlan 50

Switch#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#interface FastEthernet0/1

Switch(config-if)#

%SYS-5-CONFIG_I: Configured from console by console

Switch(config-if)#exit

Switch(config)#interface FastEthernet0/2

Switch(config-if)#switchport access vlan 50

Switch(config-if)#exit

Switch(config)#interface vlan 10

Switch(config-if)#

%LINK-5-CHANGED: Interface Vlan10, changed state to up

Switch(config-if)#ip address 172.16.1.2 255.255.255.0

Switch(config-if)#exit

Switch(config)#interface vlan 50

Switch(config-if)#

%LINK-5-CHANGED: Interface Vlan50, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan50, changed state to up

Switch(config-if)#ip address 172.16.5.1 255.255.255.0

Switch(config-if)#no shutdown

验证测试:

Switch#show ip interface

FastEthernet0/1 is up, line protocol is up

  Internet protocol processing disabled

FastEthernet0/2 is up, line protocol is up

  Internet protocol processing disabled

FastEthernet0/3 is down, line protocol is down

  Internet protocol processing disabled

FastEthernet0/4 is down, line protocol is down

  Internet protocol processing disabled

FastEthernet0/5 is down, line protocol is down

  Internet protocol processing disabled

FastEthernet0/6 is down, line protocol is down

  Internet protocol processing disabled

FastEthernet0/7 is down, line protocol is down

  Internet protocol processing disabled

FastEthernet0/8 is down, line protocol is down

  Internet protocol processing disabled

FastEthernet0/9 is down, line protocol is down

  Internet protocol processing disabled

FastEthernet0/10 is down, line protocol is down

  Internet protocol processing disabled

FastEthernet0/11 is down, line protocol is down

  Internet protocol processing disabled

 --More--

2)   路由器基本配置

在路由器A上配置端口IP

Router>enable

Router#

Router#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#interface FastEthernet0/0

Router(config-if)#ip address 172.16.1.1 255.255.255.0

Router(config-if)#no shutdown

Router(config-if)#

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

Router(config-if)#interface serial 0/3/0

Router(config-if)#ip address 172.16.2.1 255.255.255.0

Router(config-if)#Clock rate 64000

Router(config-if)#no shutdown

在路由器B上配置端口IP

Router(config)#interface Serial0/3/0

Router(config-if)#ip address 172.16.2.2 255.255.255.0

Router(config-if)#

Router(config-if)#exit

Router(config)#interface FastEthernet0/0

Router(config-if)#ip address 172.16.3.1 255.255.255.0

Router(config-if)#ip address 172.16.3.1 255.255.255.0

Router(config-if)#

Router(config-if)#exit

验证测试:验证路由器接口的配置和状态

Router#show ip interface brief

Interface              IP-Address      OK? Method Status                Protocol

 

FastEthernet0/0        172.16.1.1      YES manual administratively down down

 

FastEthernet0/1        172.16.1.1      YES manual up                    up

 

Serial0/0/0            172.16.2.1      YES manual up                    down

 

Serial0/0/1            unassigned      YES manual administratively down down

 

Vlan1                  unassigned      YES manual administratively down down

Router#

 

Router#show ip interface brief

Interface              IP-Address      OK? Method Status                Protocol

 

FastEthernet0/0        172.16.3.1      YES manual up                    up

 

FastEthernet0/1        unassigned      YES manual administratively down down

 

Serial0/0/0            unassigned      YES manual up                    down

 

Serial0/0/1            unassigned      YES manual administratively down down

 

Vlan1                  unassigned      YES manual administratively down down

Router#

2、配置RIPv2路由协议

1)三层交换机配置RIP协议

Switch>enable

Switch#config

Configuring from terminal, memory, or network [terminal]?

Enter configuration commands, one per line.  End with CNTL/Z.

Switch(config)#router rip

Switch(config-router)#network 172.16.1.0

Switch(config-router)#network 172.16.5.0

Switch(config-router)#version 2

Switch(config-router)#

Switch#

%SYS-5-CONFIG_I: Configured from console by console

2)RA配置RIP v2协议

Router#enable

Router#config

Configuring from terminal, memory, or network [terminal]?

Enter configuration commands, one per line.  End with CNTL/Z.

Router(config)#router rip

Router(config-router)#network 172.16.1.0

Router(config-router)#network 172.16.2.0

Router(config-router)#version 2

Router(config-router)#no auto-summary

3)RB配置RIP v2协议

Router#config

Configuring from terminal, memory, or network [terminal]?

Enter configuration commands, one per line.  End with CNTL/Z.

Router(config)#router rip

Router(config-router)#network 172.16.2.0

Router(config-router)#network 172.16.3.0

Router(config-router)#version 2

Router(config-router)#no auto-summary

3、验证三台路由设备的路由表,查看是否自动学习了其他网段的路由信息。

Switch#show ip route

Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP

       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP

       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area

       * - candidate default, U - per-user static route, o - ODR

       P - periodic downloaded static route

 

Gateway of last resort is not set

 

     172.16.0.0/24 is subnetted, 2 subnets

C       172.16.1.0 is directly connected, Vlan10

C       172.16.5.0 is directly connected, Vlan50

 

Router#show ip route

Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP

       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP

       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area

       * - candidate default, U - per-user static route, o - ODR

       P - periodic downloaded static route

 

Gateway of last resort is not set

 

     172.16.0.0/24 is subnetted, 2 subnets

C       172.16.1.0 is directly connected, FastEthernet0/1

R       172.16.5.0 [120/1] via 172.16.1.2, 00:00:23, FastEthernet0/1

 

Router#show ip route

Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP

       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP

       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area

       * - candidate default, U - per-user static route, o - ODR

       P - periodic downloaded static route

 

Gateway of last resort is not set

 

     172.16.0.0/24 is subnetted, 1 subnets

C       172.16.3.0 is directly connected, FastEthernet0/0

4、配置OSPF路由协议

三层交换机

Switch#config

Configuring from terminal, memory, or network [terminal]?

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#router ospf 1

Switch(config-router)#network 172.16.5.0 0.0.0.255 area 0

Switch(config-router)#network 172.16.1.0 0.0.0.0 area 0

路由器R0:

Router>enable

Router#config

Configuring from terminal, memory, or network [terminal]?

Enter configuration commands, one per line.  End with CNTL/Z.

Router(config)#router ospf 1

Router(config-router)#network 172.16.1.0 0.0.0.255 area 0

Router(config-router)#network 172.16.2.0 0.0.0.255 area 0

Router(config-router)#end

Router#

%SYS-5-CONFIG_I: Configured from console by console

路由器R1:

Router>enable

Router#config

Configuring from terminal, memory, or network [terminal]?

Enter configuration commands, one per line.  End with CNTL/Z.

Router(config)#router ospf 1

Router(config-router)#network 172.16.2.0 0.0.0.255 area 0

Router(config-router)#network 172.16.3.0 0.0.0.255 area 0

Router(config-router)#end

Router#

%SYS-5-CONFIG_I: Configured from console by console

5、测试网络的连通性

从pc0 ping pc1和网络跟踪命令:

 

六、实验总结:

 本次实验遇到的最大的问题是在前期准备阶段,画好拓扑图并进行连接的时候,即便我按照实验指导配好了相关的指令,还是不能连通路由器RB和PC1,后来索性换了一根线缆,就妥了。

  首先百度得知,直通线是用来连接直通线是将不同设备连接在一起,比如电脑和交换机,而交叉线是用来连接相同类型的设备的。后来通过进一步的了解得知,现在较新设备的网口都支持自动识别直通线或交叉线,因而交叉线正在逐渐消亡。虽然依然很迷,但是起码它最后还是通了。

  配置OSPF协议也是完全通过百度搜相关资料才解决的。

标签:6.13,router,down,Switch,172.16,Router,config
From: https://www.cnblogs.com/binglinll/p/18252272

相关文章

  • 6.13
    python错题管理系统importtkinterastkfromtkinterimportttkimportpymysqlclassWrongQuestionManagementSystem:def__init__(self):self.root=tk.Tk()self.root.title("错题本信息管理系统")self.create_main_page()s......
  • 6.13
    今日学习总结学习时间1.5h代码如下packagecom.app.chapter04;importandroid.content.ComponentName;importandroid.content.Intent;importandroid.os.Bundle;importandroid.util.Log;importandroid.view.View;importandroidx.activity.EdgeToEdge;importandroidx.appco......
  • 6.13安卓开发日记57
    今天完成工程数学作业实验五实验五:MATLAB最优化工具箱的使用一、实验目的通过一个农业生产计划优化安排的实例求解,培养学生解决实际线性规划问题的初步能力;熟悉线性规划的建模过程;掌握Matlab优化工具箱中线性规划函数的调用。通过一个投资组合优化问题的实例求解,培养学生解决......
  • 6.13学习内容
    今天完成了计算机网络的实验三 综合性训练(搭建中小企业园区网)一、实验目的:1.通过对网络设备的连通和对拓扑的分析,加深对常见典型局域网拓扑的理解;2.通过路由建立起网络之间的连接,了解网络路由的设计与配置;3.进一步熟悉交换机、路由器的基本操作命令。二、实验设备:六个PC,两......
  • 6.13-栈与队列
    基础知识首先大家要知道栈和队列是STL(C++标准库)里面的两个数据结构。C++标准库是有多个版本的,要知道我们使用的STL是哪个版本,才能知道对应的栈和队列的实现原理。那么来介绍一下,三个最为普遍的STL版本:HPSTL其他版本的C++STL,一般是以HPSTL为蓝本实现出来的,HPSTL是C++S......
  • 6.13模拟赛题解
    前面是题解,后面是垃圾话。T1P1541[NOIP2010提高组]乌龟棋没脑子直接设\(f_{p,i,j,k,w}\),为走到\(p\),还剩\(1,2,3,4\)牌各\(i,j,k,w\)张,\(9\cdot10^8\),发现到一个点只要三种牌的数量确定,最后一种也确定了,所以直接设\(f_{p,i,j,k}\)表示三种牌的就行,大力DP即可。T......
  • 6.13API接口服务类漏洞探针
    ip地址解析:www.x.x.x.com,对应网站目录为d:/wwwroot/xiaodi/而127.x.x.x,对应网站目录为d:/wwwroot/,可能存在网站备份文件zip,所以ip网址端口都的扫描;协议端弱口令爆破:超级弱口令检查工具;端口服务安全问题(用于无思路时)思路:利用探针对端口探测后,对口令安全、Web漏洞、中间......
  • 2024.6.13
    2024.6.13【痛苦的,热烈的,误解的,无解的,快乐的,解脱的】Thursday五月初八<theme=oi-"gametheory">P4018Roy&October之取石子Roy&October之取石子题目背景Roy和October两人在玩一个取石子的游戏。题目描述游戏规则是这样的:共有\(n\)个石子,两人每次都只能取\(p^......
  • 文献精读_2024.06.13
    Universalandextensiblelanguage-visionmodelsfororgansegmentationandtumordetectionfromabdominalcomputedtomography来源:https://doi.org/10.1016/j.media.2024.103226GitHub仓库:https://github.com/ljwztc/CLIP-Driven-Universal-Model第一眼,仓库上面放......
  • 6.13 个人总结
    在这个学期的学习旅程中,我作为软件工程专业的学生,经历了从理论到实践的全方位锻炼,不仅在专业技能上取得了显著进步,也在团队协作、项目管理和自我认知方面获得了宝贵的经验。以下是对我本学期学习经历的全面总结,包括对上述问题的深入思考。 1.课程计划完成程度回顾我的第一周课......