---
title: DCN Konfiguracja vlan’ów
description: "## Tworzenie vlanu DCN_CLEAR>**enable** DCN_CLEAR#**config terminal** DCN_CLEAR(config)#**vlan (nr_vlanu)** ![](http://bazawiedzy/wp-content/uploads/2021/11/image-7.png) ## Nazwa vlan'u S5750E-52X-P-SI(config)#**vlan  (nr_vlanu)** S5750E-52X-P-SI(config-vlan601**)#name (nazwa_vlanu)** ![](http://bazawiedzy/wp-content/uploads/2021/11/image-8.png) ## Porty typu access konfigurujemy w następujący sposób: DCN_CLEAR(config)#**interface ethernet [nr_int]** DCN_CLEAR(config-if-ethernet2/0/1)#**switchport mode access** Set the port Ethernet2/0/1 mode Access successfully DCN_CLEAR(config-if-ethernet2/0/1)#**switchport access…"
url: "https://rioco.pl/docs/konfiguracja-vlanow/"
updated: "2024-09-14"
category: DCN
---

# DCN Konfiguracja vlan’ów

## Tworzenie vlanu

DCN_CLEAR>**enable**

DCN_CLEAR#**config terminal**

DCN_CLEAR(config)#**vlan (nr_vlanu)**

![](http://bazawiedzy/wp-content/uploads/2021/11/image-7.png)

## Nazwa vlan'u

S5750E-52X-P-SI(config)#**vlan  (nr_vlanu)**

S5750E-52X-P-SI(config-vlan601**)#name (nazwa_vlanu)**

![](http://bazawiedzy/wp-content/uploads/2021/11/image-8.png)

## Porty typu access konfigurujemy w następujący sposób:

DCN_CLEAR(config)#**interface ethernet [nr_int]**

DCN_CLEAR(config-if-ethernet2/0/1)#**switchport mode access**

Set the port Ethernet2/0/1 mode Access successfully

DCN_CLEAR(config-if-ethernet2/0/1)#**switchport access vlan (nr_vlanu)**

Set the port Ethernet2/0/1 access vlan 300 successfully

![](http://bazawiedzy/wp-content/uploads/2021/11/image-9.png)

## Party typu trunk konfigurujemy w następujący sposób:

DCN_CLEAR(config)#**interface ethernet [nr_int]**

DCN_CLEAR(config-if-ethernet2/0/1)#**switchport mode trunk**

Set the port Ethernet2/0/1 mode Trunk successfully

DCN_CLEAR(config-if-ethernet2/0/1)#**switchport trunk allowed vlan (nr_vlanu)**

set the trunk port Ethernet2/0/1 allowed vlan successfully.

![](http://bazawiedzy/wp-content/uploads/2021/11/image-10.png)

## Native vlan

S5750E-52X-P-SI(config)#**int eth [nr_int]**

S5750E-52X-P-SI(config-if-ethernet1/0/33)#**sw mo trunk**

Set the port Ethernet1/0/33 mode Trunk successfully

S5750E-52X-P-SI(config-if-ethernet1/0/33)#**sw trunk native vlan (nr_vlanu)**

Set the port Ethernet1/0/33 native vlan 601 successfully

![](http://bazawiedzy/wp-content/uploads/2021/11/image-11.png)

## Weryfikacja vlan'ów

DCN_CLEAR>**enable**

DCN_CLEAR#**show vlan**

![](http://bazawiedzy/wp-content/uploads/2021/11/image-12.png)
