首页 > 其他分享 >6.7

6.7

时间:2024-06-11 09:33:23浏览次数:20  
标签:vlan state 6.7 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#

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

相关文章

  • HTML和CSS每周总结6.7day
    最近学的东西比较简单就没每天发了,下面我总结一下这周学的东西,最近端午节了祝大家端午节快乐。一,5.311.标签字体加粗:<b></b>   字体倾斜:<i></i>   下划线:<u></u>   删除线:<s></s>title网页标题 段落标签:<p></p> 换行标签:<br/> 字体标签:<fontcolor="......
  • 6.7总结
    第三版,差不多是最后一个版本了<!DOCTYPEhtml><htmllang="zh-CN"><head><metacharset="UTF-8"><metahttp-equiv="X-UA-Compatible"content="IE=edge,chrome=1"><metaname="render......
  • 2024.6.7
    18万条数据publicclassHotCategoryTop10_3{publicstaticvoidmain(String[]args){//TODO搭建Spark的运行环境SparkConfconf=newSparkConf();conf.setAppName("HotCategoryTop10");conf.setMaster("local[*]&quo......
  • 2024.6.7.exercise
    //#define_CRT_SECURE_NO_WARNINGS//#include<stdio.h>//#include<stdlib.h>//#include<stdbool.h>////typedefintdatatype;//typedefstructtree//{// datatypedata;// structtree*left;// structtree*right;//}tree;////datatype*......
  • 2024.6.7 日记
    今天心情不好,晚上效率很低。先总结一下模拟赛。今天确实打的不好,首先T1这个构造没啥说的,没发现就是没发现,但是freoepn是真逆天,交题前切记,编译一遍先。T2的问题在于维护方式想假导致被耗了好多好多时间,过程中还出现了倍增LCA写错,真的不牛,不过似乎这些时间省下来也没用。......
  • 6.7哈希表
    哈希表哈希表(英文名字为Hashtable,国内也有一些算法书籍翻译为散列表,大家看到这两个名称知道都是指hashtable就可以了)。哈希表是根据关键码的值而直接进行访问的数据结构。数组就是一张哈希表。哈希表中关键码就是数组的索引下标,然后通过下标直接访问数组中的元素。那么哈......
  • 2024.6.7
    2024.6.7【高考咯!!!学长们加油啊!!!】Friday五月初二A.双色球【题目描述】机房来了新一届的学弟学妹,邪恶的chenzeyu97发现一位学弟与他同名,于是他当起了善良的学长233“来来来,学弟,我考你道水题检验一下你的水平……”一个栈内初始有n个红色和蓝色的小球,请你按照以下规则进......
  • 报错 urllib3 (1.26.7) or chardet (5.2.0)/charset_normalizer (2.0.8) doesn‘t mat
    报错RequestsDependencyWarning:urllib3(1.26.7)orchardet(5.2.0)/charset_normalizer(2.0.8)doesn'tmatchasupportedversion!warnings.warn("urllib3({})orchardet({})/charset_normalizer({})doesn'tmatchasupported"这个警告信息Req......
  • VMware ESXi 6.7U3u macOS Unlocker & OEM BIOS 标准版和厂商定制版 UI fix
    VMwareESXi6.7U3umacOSUnlocker&OEMBIOS标准版和厂商定制版UIfixESXi6.7U3u标准版,Dell(戴尔)、HPE(慧与)OEM定制版请访问原文链接:https://sysin.org/blog/vmware-esxi-6-oem/,查看最新版。原创作品,转载请保留出处。作者主页:sysin.org除了需要兼容RTL网卡有......
  • VMware ESXi 6.7U3u macOS Unlocker & OEM BIOS 集成 Realtek 网卡驱动和 NVMe 驱动 (
    VMwareESXi6.7U3umacOSUnlocker&OEMBIOS集成Realtek网卡驱动和NVMe驱动(集成驱动版)UIfix此版本解决的问题:VMwareHostClient无法将现有虚拟磁盘(VMDK)附加到虚拟机请访问原文链接:https://sysin.org/blog/vmware-esxi-6-sysin/,查看最新版。原创作品,转载请保......