Skip to content
  • Home
  • About
  • Contact
  • Twitter
  • GitHub
Search
Close

NPLC

Networking, Programming, Linux & Cats

Tag: vlan

Creating the vlans using Python and Loops

August 25, 2017February 21, 2018 uc0Leave a comment

More efficient way of doing things with any programming language is using the loops.

https://wiki.python.org/moin/ForLoop

Example of creating 32 vlans on cisco switch :

vlans_loops

The code looks more readable and you can scale it now 🙂

Python, creating the vlans on the Cisco switch

August 24, 2017February 21, 2018 uc0Leave a comment

Just a short example how you can create a VLANs on Cisco switch.

Using Linux machine for executing the python and GNS3 Cisco Ether-switch

gns3_ubuntu_mapped_to_ether_Switch

creating_vlans

Just trying to get it working, this is definetely not an example how the production program should look like, at least the loop and more variables could be used here, but for now only hard-coding the stuff 🙂

Video number 2

Recent Posts

  • Unix keystrokes June 11, 2018
  • Storage Area Networks – Books February 22, 2018
  • More about TCP February 22, 2018
  • Flowcontrol IEEE 802.3x February 21, 2018
  • Mounting the iscsi target and checking performance. January 31, 2018
  • Speed of light limit December 9, 2017
  • End to End delay December 9, 2017
  • Packetization delay December 9, 2017
  • Propagation delay December 9, 2017
  • TCP congestion control December 8, 2017
  • BGP overview December 8, 2017
  • Finite State Machines (FSM) December 8, 2017
  • ARP – Address Resolution Protocol December 8, 2017
  • Source routing December 8, 2017
  • A bit of TCP history December 4, 2017
  • VRRP Concepts November 3, 2017
  • Dell Networking VLT concepts November 3, 2017
  • Dell VLT Peer-Routing October 2, 2017
  • Error Detection – Checksum September 29, 2017
  • A bit info about ICMP, ping and traceroute September 28, 2017
  • The TCP and UDP segment format September 22, 2017
  • Big and Little Endian August 28, 2017
  • Playing with Arduino August 25, 2017
  • Learning how to learn August 25, 2017
  • Creating the vlans using Python and Loops August 25, 2017
  • Python, creating the vlans on the Cisco switch August 24, 2017
  • Small how to setup a WiFI device on your FreeBSD machine. August 24, 2017
  • Apt-get/Yum through proxy August 24, 2017
  • Connecting to the Switch using Python August 24, 2017
  • First post August 23, 2017

Categories

  • *BSD (1)
  • Arduino (1)
  • ARP (1)
  • BGP (1)
  • Computer Architecture (1)
  • Finite State Machines (1)
  • flowcontrol (1)
  • GNS3 (2)
  • Health (1)
  • Intro (1)
  • Linux (4)
  • Networking (21)
  • Python (3)
  • SAN (1)
  • TCP (1)
  • Uncategorized (1)
Website Built with WordPress.com.
Back to top
  • Follow Following
    • NPLC
    • Already have a WordPress.com account? Log in now.
    • NPLC
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...
 

    Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
    To find out more, including how to control cookies, see here: Our Cookie Policy