Let’s edit this file:
nano /etc/network/interfaces/
/etc/network/interfaces it’s a Debian server. Several interfaces are configured:
enp0s2: Alternative fixed IP (172.25.201.10) enp1s0: Own IP (10.90.90.95) VLANs over enp1s0: VLAN 10 (Production): 192.168.10.1 /27 VLAN 20 (Administration): 192.168.20.1 /28 VLAN 30 (Guests): 192.168.50.1 /29 VLAN 40 (Backup): 192.168.40.1 /26
Each VLAN makes use of vlan-raw-device enp1s0. It is a manual configuration of IPs for each virtual network.
CONFIGURACIO SWITCH
Change the switch IP to position in ADM VLAN
Ports configuration
VLAN ID | Name | Ports sense tag (Untagged) | Port amb tag (Tagged) |
---|---|---|---|
10 | production | eth2 | eth1 |
20 | Admins | eth3, eth7 | eth1 |
30 | guests | eth4 | eth1 |
40 | Backups | eth5 | eth1 |