溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

局域網(wǎng)組建——數(shù)據(jù)交換區(qū)

發(fā)布時間:2020-07-04 21:31:04 來源:網(wǎng)絡(luò) 閱讀:491 作者:昕若 欄目:網(wǎng)絡(luò)安全

場景描述:


    公司有3個部門,財務(wù)、銷售、it部,分別使用vlan10、vlan11、vlan12,要求各部門之間可以互相訪問。

      

 局域網(wǎng)組建——數(shù)據(jù)交換區(qū)



實現(xiàn)原理:

   

   3個部門位于不同vlan且位于不同接入交換機,要實現(xiàn)互相訪問就必須要用到vlan間路由,需要一個3層設(shè)備,本實驗采用3層交換做路由使用,vlan數(shù)據(jù)跨交換機訪問需要在中繼通道中通過在轉(zhuǎn)發(fā)給交換機相應(yīng)端口實現(xiàn)通信。


配置步驟:


1 基本配置:創(chuàng)建vlan、劃分端口(以it部交換機為例)

分別在各交換機上創(chuàng)建vlan并與端口關(guān)聯(lián)(其它交換機配置相似)

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

 局域網(wǎng)組建——數(shù)據(jù)交換區(qū)

向AI問一下細節(jié)

免責聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI