PasteZap
🌐 Italiano
Gratis · Senza account

Gratis · Rete e infrastruttura IT

Pianificatore di VLAN.

Pianifica ID VLAN, sottoreti, gateway e intervalli DHCP, individua gli errori e genera configurazioni per Cisco, Linux, Netplan e MikroTik.

Prima di iniziare

Alcuni controlli tecnici sono in inglese. I testi Unicode sono supportati; formati e lingue di output dipendono dallo strumento.

I limiti tecnici sono indicati in inglese qui sotto. Controllali prima di elaborare file grandi o utilizzare il risultato.

CALCULATED IN YOUR BROWSER · NOTHING IS UPLOADED
VLANs
VLANs51,174 usable addresses

Cisco IOS / IOS-XE (layer-3 switch)

vlan 10
 name USERS
!
vlan 20
 name VOICE
!
vlan 30
 name SERVERS
!
vlan 40
 name GUEST
!
vlan 99
 name MGMT
!
interface Vlan10
 description USERS
 ip address 10.0.10.1 255.255.255.0
 no shutdown
!
interface Vlan20
 description VOICE
 ip address 10.0.20.1 255.255.255.0
 no shutdown
!
interface Vlan30
 description SERVERS
 ip address 10.0.30.1 255.255.255.128
 no shutdown
!
interface Vlan40
 description GUEST
 ip address 10.0.40.1 255.255.254.0
 no shutdown
!
interface Vlan99
 description MGMT
 ip address 10.0.99.1 255.255.255.224
 no shutdown
!
interface GigabitEthernet1/0/48
 description Uplink trunk
 switchport mode trunk
 switchport trunk allowed vlan 10,20,30,40,99
!

Linux iproute2 (runtime)

ip link add link eth0 name eth0.10 type vlan id 10
ip addr add 10.0.10.1/24 dev eth0.10
ip link set eth0.10 up
ip link add link eth0 name eth0.20 type vlan id 20
ip addr add 10.0.20.1/24 dev eth0.20
ip link set eth0.20 up
ip link add link eth0 name eth0.30 type vlan id 30
ip addr add 10.0.30.1/25 dev eth0.30
ip link set eth0.30 up
ip link add link eth0 name eth0.40 type vlan id 40
ip addr add 10.0.40.1/23 dev eth0.40
ip link set eth0.40 up
ip link add link eth0 name eth0.99 type vlan id 99
ip addr add 10.0.99.1/27 dev eth0.99
ip link set eth0.99 up

Netplan (Ubuntu)

network:
  version: 2
  vlans:
    eth0.10:
      id: 10
      link: eth0
      addresses: [10.0.10.1/24]
    eth0.20:
      id: 20
      link: eth0
      addresses: [10.0.20.1/24]
    eth0.30:
      id: 30
      link: eth0
      addresses: [10.0.30.1/25]
    eth0.40:
      id: 40
      link: eth0
      addresses: [10.0.40.1/23]
    eth0.99:
      id: 99
      link: eth0
      addresses: [10.0.99.1/27]

MikroTik RouterOS

/interface vlan
add interface=eth0 name=vlan10-users vlan-id=10
add interface=eth0 name=vlan20-voice vlan-id=20
add interface=eth0 name=vlan30-servers vlan-id=30
add interface=eth0 name=vlan40-guest vlan-id=40
add interface=eth0 name=vlan99-mgmt vlan-id=99
/ip address
add address=10.0.10.1/24 interface=vlan10-users
add address=10.0.20.1/24 interface=vlan20-voice
add address=10.0.30.1/25 interface=vlan30-servers
add address=10.0.40.1/23 interface=vlan40-guest
add address=10.0.99.1/27 interface=vlan99-mgmt

VLAN plan

VLANNameSubnetMaskGatewayUsable hostsDHCP poolChecks
10USERS10.0.10.0/24255.255.255.010.0.10.125410.0.10.50 – 10.0.10.250 (201)OK
20VOICE10.0.20.0/24255.255.255.010.0.20.125410.0.20.50 – 10.0.20.250 (201)OK
30SERVERS10.0.30.0/25255.255.255.12810.0.30.1126Static onlyOK
40GUEST10.0.40.0/23255.255.254.010.0.40.151010.0.40.20 – 10.0.41.250 (487)OK
99MGMT10.0.99.0/27255.255.255.22410.0.99.130Static onlyOK
  • Older Catalyst switches also need “switchport trunk encapsulation dot1q” before “switchport mode trunk”.
  • Netplan also needs the parent interface defined in the ethernets section. Review every snippet before applying it; a wrong trunk command can cut your own management access.

Come usare questo strumento: Pianificatore di VLAN

Inserisci i dati o scegli il file. Regola le opzioni, genera il risultato e controllalo prima di copiarlo o scaricarlo.

Limiti e formati supportati

I dati vengono elaborati sul tuo dispositivo.

Note tecniche in inglese

IPv4 subnets, up to 300 VLANs. Snippets are starting points: they do not configure access ports, spanning tree or routing protocols. Everything is calculated in your browser; nothing is sent or probed on the network.

Each VLAN is validated (ID range, reserved IDs, overlaps, gateway and pool inside the subnet) and turned into vlan/interface Vlan commands, iproute2 commands, a Netplan vlans section and RouterOS commands.

VLAN 10 USERS 10.0.10.0/24 gets gateway 10.0.10.1 and pool .50–.250; overlapping subnets or a gateway inside the pool are flagged.