Code Monkey home page Code Monkey logo

vlan's Introduction

VLAN Configuration Script

Project Summary

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.

Feature List

  1. Can list all defined VLAN's
  2. Can show properties/status of specified VLAN by name
  3. Can show properties/status of all VLAN's defined
  4. Prints usage to terminal upon mistakes in usage by user
  5. Ensures Ethernet Port and VLAN ID are provided to define a new VLAN
  6. Allows the user to define the name for a new VLAN
  7. Allows the user to assign an ingress priority map
  8. Allows the user to assign an egress priority map
  9. Can remove a particular VLAN by name
  10. Prints confirmation once VLAN creation/removal
  11. Can assign an IPV4 address for specific VLAN
  12. Can make the VLAN available on boot

Software Used

  1. OS: Ubuntu 20.04
  2. Editor: VIM 8.2

Pre-requisites

Requirements to set up a successful VLAN.

Hardware

  1. 802.1q supported NIC (Network Interface Card)
  2. 802.1q support network switch

Software

  1. Vlan package is installed: sudo apt install vlan
  2. 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'

References

VLAN Configuration

  1. ip-link(8) โ€” Linux manual page
  2. VLAN - Ubuntu Wiki
  3. VLAN - archlinux (Updated 2021)
  4. How to configure a VLAN in Linux by Anthony Critelli (2019)
  5. VLANs on Linux by Paul Frieden (2004)
  6. HowTo: Configure Linux Virtual Local Area Network (VLAN) by Vivek Gite (2006)

Command Line Options and Arguments

  1. getopts(1p) โ€” Linux manual page
  2. getopts

vlan's People

Contributors

nagars avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.