偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

實例講解三層交換機配置中關(guān)于VLAN劃分以及設(shè)置問題

網(wǎng)絡(luò) 路由交換
DGS-3627三層交換機配置的24口接到路由器的LAN口上面,路由器的LAN口地址是192.168.0.99,跟VLAN40是在同一個IP段里面,那么,客戶機、三層交換機配置和路由器里面怎么設(shè)置才能讓電腦上網(wǎng)呢?

實例講解三層交換機配置中關(guān)于VLAN劃分以及設(shè)置問題,三層交換機配置中不能避免的就是關(guān)于vlan的劃分和配置問題,一般情況下劃分為4種,如何找回就成了我們關(guān)注的問題,本文從劃分情況原理,配置思路以及測試過程上深入講解了vlan的設(shè)置步驟。

DGS-3627交換機的IP地址是192.168.0.1,它同時也是VLAN40的虛接口地址,Vlan40與路由器連接。DGS-3627交換機的24口接到路由器的LAN口上面,路由器的LAN口地址是192.168.0.99,跟VLAN40是在同一個IP段里面,那么,客戶機、三層交換機配置和路由器里面怎么設(shè)置才能讓電腦上網(wǎng)呢?

三層交換機配置VLAN劃分情況如下:
◆VLAN10虛接口:192.168.1.1  交換機接口:1號口  VID:10interface:if10
◆VLAN20虛接口:192.168.2.1  交換機接口:2號口  VID:20interface:if20
◆VLAN30虛接口:192.168.3.1  交換機接口:3號口  VID:30interface:if30
◆VLAN40虛接口:192.168.0.1  交換機接口:4-24號口  VID:40interface:system

創(chuàng)建一條默認路由
在交換機加條命令 create iproute default 192.168.0.99

在路由器上設(shè)幾條靜態(tài)路由:
192.168.1.0/255.255.255.0 192.168.0.1
192.168.2.0/255.255.255.0 192.168.0.1
192.168.3.0/255.255.255.0 192.168.0.1

三層交換機配置客戶端設(shè)置,2網(wǎng)段為例
ip:192.168.2.X
mask:255.255.255.0
gw:192.168.2.1

三層交換機配置了虛接口后,各個Vlan之間是可以互訪的,如果需要對用戶的訪問進行控制可以使用訪問控制列表進行管理。訪問控制方面,設(shè)置一下acl就可以了:允許所有用戶上網(wǎng):
create access_profile ip source_ip_mask 255.255.0.0 destination_ip_mask 255.255.255.255 profile_id 1 permit
config access_profile profile_id 1 add access_id 1 ip source_ip 192.168.0.0 destination_ip 192.168.0.99

三層交換機配置所有網(wǎng)段允許訪問服務(wù)器所在公共網(wǎng)段vlan10:
create access_profile ip source_ip_mask 255.255.0.0 destination_ip_mask 255.255.255.0 profile_id 5 permit
config access_profile profile_id 5 add access_id 1 ip source_ip 192.168.0.0 destination_ip 192.168.1.0

三層交換機配置禁止Vlan之間互訪:
create access_profile ip source_ip_mask 255.255.255.0 destination_ip_mask 255.255.255.0 profile_id 10 deny
config access_profile profile_id 10 add access_id 1 ip source_ip 192.168.2.0 destination_ip 192.168.0.0 deny
config access_profile profile_id 10 add access_id 2 ip source_ip 192.168.2.0 destination_ip 192.168.3.0 deny
config access_profile profile_id 10 add access_id 3 ip source_ip 192.168.0.0 destination_ip 192.168.2.0 deny
config access_profile profile_id 10 add access_id 4 ip source_ip 192.168.0.0 destination_ip 192.168.3.0 deny
config access_profile profile_id 10 add access_id 5 ip source_ip 192.168.3.0 destination_ip 192.168.2.0 deny
config access_profile profile_id 10 add access_id 6 ip source_ip 192.168.3.0 destination_ip 192.168.0.0 deny

責任編輯:佟健 來源: 天極
相關(guān)推薦

2025-06-13 10:05:00

VLAN網(wǎng)絡(luò)

2010-01-11 13:14:36

配置三層交換機

2010-01-11 10:18:36

三層交換機配置

2010-01-11 16:26:42

三層交換機作用

2013-08-14 10:08:07

TrunkVLAN三層交換

2009-08-05 10:07:20

交換機配置實驗

2010-09-29 14:01:05

三層交換機配置DHCP

2010-01-11 11:16:43

三層交換機配置

2010-01-15 20:51:31

三層交換機網(wǎng)關(guān)設(shè)置

2010-02-07 15:24:49

三層交換機

2010-01-11 16:38:20

三層交換機配置實例

2012-11-13 10:42:26

交換機路由器VLAN

2010-01-11 10:19:42

三層交換機配置

2013-01-23 09:40:21

交換機路由連接網(wǎng)絡(luò)設(shè)置

2012-12-17 10:11:19

三層交換機網(wǎng)關(guān)設(shè)置

2010-01-12 17:56:48

交換機網(wǎng)關(guān)設(shè)置

2014-06-25 09:39:17

交換機三層三層Cisco

2010-02-22 14:05:33

三層交換機

2010-01-08 13:35:24

第三層交換機

2013-05-23 10:58:38

三層交換機vlanvlan通信
點贊
收藏

51CTO技術(shù)棧公眾號