温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

局域网组建——数据交换区

发布时间:2020-07-04 21:31:04 来源:网络 阅读:506 作者:昕若 栏目:网络安全

场景描述:


    公司有3个部门,财务、销售、it部,分别使用vlan10、vlan11、vlan12,要求各部门之间可以互相访问。

      

 局域网组建——数据交换区



实现原理:

   

   3个部门位于不同vlan且位于不同接入交换机,要实现互相访问就必须要用到vlan间路由,需要一个3层设备,本实验采用3层交换做路由使用,vlan数据跨交换机访问需要在中继通道中通过在转发给交换机相应端口实现通信。


配置步骤:


1 基本配置:创建vlan、划分端口(以it部交换机为例)

分别在各交换机上创建vlan并与端口关联(其它交换机配置相似)

Switch(config)#vlan 10

Switch(config)#vlan 100

Switch(config-vlan)#vlan 11

Switch(config-vlan)#vlan 12

Switch(config-vlan)#vlan 13

Switch(config)#int f0/2

Switch(config-if)#switch

Switch(config-if)#switchport mode access

Switch(config-if)#switchport access vlan 10


2 配置交换机trunk口,配置管理地址

Switch(config)#int f0/22

Switch(config-if)#switchport mode trunk

Switch(config-if)#switchport trunk allowed vlan all

Switch(config)# int vlan 100

Switch(config-if)#ip address 10.100.50.11 255.255.255.0


3 核心交换配置


Switch#show running-config

Building configuration...


Current configuration : 1551 bytes

!

version 12.2

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname Switch

!

!

!

!

!

!

!

ip routing

!

!

!

!

!

!

!

!

!

!

!

!

!

!

spanning-tree mode pvst

!

!

!

!

!

!

interface FastEthernet0/1

!

interface FastEthernet0/2

!

interface FastEthernet0/3

!

interface FastEthernet0/4

!

interface FastEthernet0/5

!

interface FastEthernet0/6

!

interface FastEthernet0/7

!

interface FastEthernet0/8

!

interface FastEthernet0/9

!

interface FastEthernet0/10

!

interface FastEthernet0/11

!

interface FastEthernet0/12

!

interface FastEthernet0/13

!

interface FastEthernet0/14

!

interface FastEthernet0/15

!

interface FastEthernet0/16

!

interface FastEthernet0/17

!

interface FastEthernet0/18

!

interface FastEthernet0/19

!

interface FastEthernet0/20

!

interface FastEthernet0/21

!

interface FastEthernet0/22

switchport trunk encapsulation dot1q

switchport mode trunk

!

interface FastEthernet0/23

switchport trunk encapsulation dot1q

switchport mode trunk

!

interface FastEthernet0/24

switchport trunk encapsulation dot1q

switchport mode trunk

!

interface GigabitEthernet0/1

!

interface GigabitEthernet0/2

!

interface Vlan1

no ip address

shutdown

!

interface Vlan10

ip address 10.100.10.1 255.255.255.0

!

interface Vlan11

ip address 10.100.11.1 255.255.255.0

!

interface Vlan12

ip address 10.100.12.1 255.255.255.0

!

interface Vlan100

ip address 10.100.50.10 255.255.255.0

!

ip classless

!

ip flow-export version 9

!

!

!

!

!

!

!

line con 0

!

line aux 0

!

line vty 0 4

login

!

!

!

end

 局域网组建——数据交换区

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI