首页 > 其他分享 >6.11

6.11

时间:2024-06-11 09:32:49浏览次数:21  
标签:6.11 vlan state Switch interface Router config

继续完成计网的实验,以及完善实验报告,下午对小组作业进行了最后的验收

 

 

①配置二层交换机S1

S1>enable

S1#config

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

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

S1(config)#vlan 11

S1(config-vlan)#interface fastethernet 0/1

S1(config-if)#switchport access vlan 11

S1(config-if)#interface fastethernet 0/2

S1(config-if)#switchport access vlan 11

S1(config-if)#interface fastethernet 0/3

S1(config-if)#switchport access vlan 11

S1(config-if)#exit

 

②配置二层交换机S2

S2>enable

S2#config

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

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

S2(config)#vlan 13

S2(config-vlan)#interface fastethernet 0/1

S2(config-if)#switchport access vlan 13

S2(config-if)#interface fastethernet 0/2

S2(config-if)#switchport access vlan 13

S2(config-if)#interface fastethernet 0/3

S2(config-if)#switchport access vlan 13

S2(config-if)#end

③配置二层交换机S3

Switch>enable

Switch#config

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

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

Switch(config)#hostname S3

S3(config)#vlan 15

S3(config-vlan)#exit

S3(config)#interface vlan 15

S3(config-if)#

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

S3(config-if)#interface fastethernet 0/1

S3(config-if)#switchport access vlan 15

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan15, changed state to upS3(config-if)#

S3(config-if)#exit

S3(config)#interface fastethernet 0/2

S3(config-if)#switchport access vlan 15

S3(config-if)# interface fastethernet 0/3

S3(config-if)#switchport access vlan 15

S3(config-if)#end

④配置二层交换机S4

Switch>enable

Switch#config

Configuring fr,om terminal, memory, or network [terminal]?

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

Switch(config)#hostname S4

S4(config)#vlan 20

S4(config-vlan)#exit

S4(config)#interface vlan 20

S4(config-if)#

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

S4(config-if)#interface fastethernet 0/1

S4(config-if)#switchport access vlan 20

 

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan20, changed state to upS4(config-if)#

S4(config-if)#exit

S4(config)#interface fastethernet 0/2

S4(config-if)#switchport access vlan 20

S4(config-if)# interface fastethernet 0/3

S4(config-if)#switchport access vlan 20

S4(config-if)#end

第二步:配置三层交换机(划分vlan,配置rip协议)

①  配置三层交换机

三层交换机Switch0

Switch>enable

Switch#config

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

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

Switch(config)#vlan 11                   

Switch(config)#interface fastethernet0/1    

Switch(config-if)#switchport access vlan 11

Switch(config)#vlan 13                  

Switch(config)#interface fastethernet0/2   

Switch(config-if)#switchport access vlan 13

Switch(config)#vlan 22                     

Switch(config)#interface fastethernet0/3  

Switch(config-if)#switchport access vlan 22

Switch(config-if)#exit

Switch(config)#interface vlan 11

Switch(config-if)#ip address 192.168.1.1  255.255.255.0

Switch(config-if)#no shutdown               

Switch(config)#interface vlan 13

Switch(config-if)#ip address 192.168.3.1  255.255.255.0

Switch(config-if)#no shutdown               

Switch(config-if)#exit

Switch(config)#interface vlan 22

Switch(config-if)#ip address 192.168.2.2  255.255.255.0

Switch(config-if)#no shutdown  

②  配置三层交换机Switch1

Switch>enable

Switch#config

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

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

Switch(config)#vlan 25

Switch(config-vlan)#interface fastethernet 0/1

Switch(config-if)#switchport access vlan 25

Switch(config-if)#exit

Switch(config)#vlan 15

Switch(config-vlan)#interface fastethernet 0/2

Switch(config-if)#switchport access vlan 15

Switch(config-if)#exit

Switch(config)#interface vlan 25

Switch(config-if)#

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

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

Switch(config-if)#ip address 192.168.8.2 255.255.255.0

Switch(config-if)#no shutdown

Switch(config-if)#exit

Switch(config)#interface vlan 15

Switch(config-if)#

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

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

Switch(config-if)#ip address 192.168.4.1 255.255.255.0

Switch(config-if)#no shutdown

Switch(config-if)#exit

③  配置三层交换机Switch2

Switch>enable

Switch#config

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

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

Switch(config)#vlan 50

Switch(config-vlan)#interface fastethernet 0/1

Switch(config-if)#switchport access vlan 50

Switch(config-if)#exit

Switch(config)#vlan 20

Switch(config-vlan)#interface fastethernet 0/2

Switch(config-if)#switchport access vlan 20

Switch(config-if)#exit

Switch(config)#interface vlan 50

Switch(config-if)#

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

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

Switch(config-if)#ip address 192.168.9.2 255.255.255.0

Switch(config-if)#no shutdown

Switch(config-if)#exit

Switch(config)#interface vlan 20

Switch(config-if)#

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

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

Switch(config-if)#ip address 192.168.6.1 255.255.255.0

Switch(config-if)#no shutdown

Switch(config-if)#exit

 

 

 

第五步:配置路由器

①配置路由器R0

Router>enable

Router#config

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

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

Router(config)#hostname R0

R0(config)#interface fastethernet 0/0

R0(config-if)#ip address 192.168.2.1 255.255.255.0

R0(config-if)#no shutdown

 

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

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

R0(config-if)#exit

R0(config)#interface serial 2/0

R0(config-if)#ip address 192.168.5.1 255.255.255.0

R0(config-if)#clock rate 64000

R0(config-if)#no shutdown

%LINK-5-CHANGED: Interface Serial2/0, changed state to down

R0(config-if)#end

R0#

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

R0#

②配置路由器R1

Router>enable

Router#config

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

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

Router(config)#interface fastethernet 0/0

Router(config-if)#ip address 192.168.8.1 255.255.255.0

Router(config-if)#no shutdown

 

%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 2/0

Router(config-if)#ip address 192.168.5.2 255.255.255.0

Router(config-if)#clock rate 64000

Router(config-if)#no shutdown

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

Router(config-if)#ip address 192.168.7.1 255.255.255.0

Router(config-if)#clock rate 64000

Router(config-if)#no shutdown

 

%LINK-5-CHANGED: Interface Serial2/0, changed state to down

Router(config-if)#end

Router#

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

Router#

③配置路由器R2

Router>enable

Router#config

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

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

Router(config)#interface fastethernet 0/0

Router(config-if)#ip address 192.168.9.1 255.255.255.0

Router(config-if)#no shutdown

%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 2/0

Router(config-if)#ip address 192.168.7.2 255.255.255.0

Router(config-if)#clock rate 64000

Router(config-if)#no shutdown

%LINK-5-CHANGED: Interface Serial2/0, changed state to down

Router(config-if)#end

Router#

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

Router#

标签:6.11,vlan,state,Switch,interface,Router,config
From: https://www.cnblogs.com/zljzy/p/18241533

相关文章

  • PMP-6.11 控制采购-采购文档更新、合同管理、索赔管理(工具)
    一、控制采购基础内容  0.涉及领域:(1)需求管理计划需求管理计划描述将如何分析、记录和管理承包商需求。(2)风险管理计划风险管理计划描述如何安排和实施由卖方引发的项目风险管理活动。(3)采购管理计划采购管理计划规定了在控制采购过程中需要开展的活动。(4)变更......
  • WinRAR6.11无广告 - 老牌压缩软件知名产品
       WinRAR是一款功能强大的压缩包管理器,它是档案工具RAR在 Windows环境下的图形界面。该软件可用于备份数据,缩减电子邮件附件的大小,解压缩从Internet上下载的RAR、ZIP及其它类型文件,并且可以新建RAR及ZIP格式等的压缩类文件。从5.60版开始,WinRAR启用了新的图标,但用户......
  • Palo Alto Cortex XSOAR 6.11 (Linux) - 安全编排、自动化和响应 (SOAR) 平台
    PaloAltoCortexXSOAR6.11(Linux)-安全编排、自动化和响应(SOAR)平台SecurityOrchestration,AutomationandResponse(SOAR)platform请访问原文链接:https://sysin.org/blog/cortex-xsoar-6/,查看最新版。原创作品,转载请保留出处。作者主页:sysin.org重新定义安全......
  • 6.11 中考前一天打的比赛
    http://oi.nks.edu.cn/zh/Contest/RankListOI/2364当时在坐校车,所以这场晚做了半个小时,但考的也看得过去T1:签到题http://oi.nks.edu.cn/zh/Problem/Details?cid=2364&tid=A一道构造题,比较简单,但我不太擅长构造,所以这道写了大概一个小时。思路也比较清楚,就先放限制了的数字,不能......
  • 上周热点回顾(6.5-6.11)
    热点随笔:· 如何计算一个实例占用多少内存? (Artech)· 一个.Net强大的Excel控件,支持WinForm、WPF、Android【强烈推荐】 (chingho)· 一个超级大的文件如何更快读 (tokengo)· 代码的坏味道(二)——为什么建议使用模型来替换枚举? (木宛城主)· C#版本特性一览 (高云鹏)......
  • 6.11周报
    文献阅读(一)运用赋能计算的方法,在网格层面量化东莞外卖垃圾的产生情况:Fullarticle:QuantifythefooddeliverypackagewastegenerationofDongguaningridlevelusingempowermentcalculationmethod(tandfonline.com)笔记地址:运用赋能计算方法,在网格层面量化东莞外卖......
  • 2023.6.11 从链表中删去总和值为0的节点
    对一个序列进行前缀和处理,假设p处前缀和与q处前缀和相等,说明\((p,q)\)之间的序列和为0。因此我们可以遍历一次链表,预处理出前缀和,同时用哈希表记录,哈希表的key为前缀和,value为所处节点。遇到相同的key时,直接覆盖,这样哈希表存储的就是前缀和为key的最后一个节点。第二次遍历......
  • 2023.6.1101.数据库基础介绍
    数据库基础介绍数据库概述数据库运维 1.认识MySQL什么是数据库数据库是⼀个⽤于存储和管理数据的电⼦化系统。我们可以把它想象成⼀个⼤型的⽂件柜,⾥⾯存储着各种类型的数据,例如个⼈信息、产品信息、订单信息等等。这些数据可以被组织、管理和检索,以⽅便⽤户快速地找到......
  • 6.11学习总结
    不知不觉中以学习Java将近4个月了,在这几个月的学习中我从一开始的迷茫懵逼,到现在的懵逼迷茫中,写下了这篇这个学期课程的Java学习心得体会。首先,我认为作为一个该开始学习Java的小白,在开始学习之前无论你有多大的热情与信心,都会在之后的学习中被程序啪啪打脸,让你无限的迷茫与懵逼。......
  • 6.11 类关联结构
    classCar{privateStringname;privatedoubleprice;privatePersonperson;//车应该属于一个人publicCar(Stringname,doubleprice){this.name=name;this.price=price;}publicvoidsetPerson(Personperson){......