This project involves a bash script designed to implement VLAN's. The script can create, remove and show VLAN's on a specific ethernet port.
- Can list all defined VLAN's
- Can show properties/status of specified VLAN by name
- Can show properties/status of all VLAN's defined
- Prints usage to terminal upon mistakes in usage by user
- Ensures Ethernet Port and VLAN ID are provided to define a new VLAN
- Allows the user to define the name for a new VLAN
- Allows the user to assign an ingress priority map
- Allows the user to assign an egress priority map
- Can remove a particular VLAN by name
- Prints confirmation once VLAN creation/removal
- Can assign an IPV4 address for specific VLAN
- Can make the VLAN available on boot
- OS: Ubuntu 20.04
- Editor: VIM 8.2
Requirements to set up a successful VLAN.
- 802.1q supported NIC (Network Interface Card)
- 802.1q support network switch
- Vlan package is installed:
sudo apt install vlan
- 8021q module is loaded into the kernel:
sudo modprobe 8021q
. Alternatively, if you want the VLAN to be available permanently, you can set the module to be loaded on bootup:sudo su -c 'echo "8021q" >> /etc/modules'