Skip to content

Instantly share code, notes, and snippets.

View adiroata's full-sized avatar
🖥️
online

Adrian Roata adiroata

🖥️
online
View GitHub Profile
@adiroata
adiroata / draw_topology.py
Created March 26, 2020 07:24 — forked from floatingstatic/draw_topology.py
Python Graphviz Network Topology Example
#!/usr/bin/env python
import graphviz
# Define nodes/edges here...
edges = {('Arista249', 'Gi1/0/12'): ('HP830_LSW', 'Ethernet47'),
('Arista249', 'Gi2/0/22'): ('HP_5500EI', 'Ethernet48'),
('Arista249', 'Gi1/0/24'): ('HP_5500EI', 'Management1')}
styles = {
'graph': {
Title : "Vyos basic configuration"
Date : "25/07/2018"
Author : "Musha"
Reference : "http://soucy.org/vyos/UsingVyOSasaFirewall.pdf"
1) Configure network Interface eth0 (internet)
set interfaces ethernet eth0 address dhcp
set interfaces ethernet eth0 description 'OUTSIDE'
2) Configure network interface eth1 (dmz)