Skip to content

Instantly share code, notes, and snippets.

View kholisrag's full-sized avatar

Kholis Respati Agum Gumelar kholisrag

View GitHub Profile
@kholisrag
kholisrag / network
Created September 6, 2017 19:27
Shell Script and LEDE Network Config for working with Open vSwitch v2.7.1 (openvswitch), working with TP-Link TL-WR1043ND v4 custom firmware LEDE Reboot (OpenWRT)
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fded:6c7d:48c4::/48'
@kholisrag
kholisrag / qos_clear.sh
Created September 6, 2017 19:24
Shell Script for Add Queue in Open vSwitch (openvswitch), in my chase it's for openvswitch 2.7.1 with TP-Link TL=WR1043ND v4 Custom Firmware LEDE Reboot (OpenWRT)
#!/bin/sh
for i in eth0.1 eth0.2 eth0.3 eth0.4 eth0.5 eth0.6 wlan0
do
ovs-vsctl clear Port $i qos
echo -e "\033[0;32m Clear QoS and Queue in $i Successful"
done
ovs-vsctl --all destroy QoS
ovs-vsctl --all destroy Queue
echo " "
exit 1