Skip to content

Instantly share code, notes, and snippets.

@kholisrag
Created September 6, 2017 19:27
Show Gist options
  • Save kholisrag/879545a4f3f9838c54e574a7f2675cf5 to your computer and use it in GitHub Desktop.
Save kholisrag/879545a4f3f9838c54e574a7f2675cf5 to your computer and use it in GitHub Desktop.
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'
config interface 'lan'
option ifname 'ovslan'
option proto 'static'
option ipaddr '192.168.0.110'
option netmask '255.255.255.0'
option gateway '192.168.0.1'
config interface 'eth0_1'
option ifname 'eth0.1'
option proto 'static'
config interface 'wan'
option ifname 'ovs-wan'
option proto 'dhcp'
config interface 'eth0_2'
option ifname 'eth0.2'
option proto 'dhcp'
config interface 'ovs1'
option ifname 'eth0.3'
option proto 'dhcp'
config interface 'ovs2'
option ifname 'eth0.4'
option proto 'dhcp'
config interface 'ovs3'
option ifname 'eth0.5'
option proto 'dhcp'
config interface 'ovs4'
option ifname 'eth0.6'
option proto 'dhcp'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '0t 6'
option vid '1'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '0t 5'
option vid '2'
config switch_vlan
option device 'switch0'
option vlan '3'
option vid '3'
option ports '0t 4'
config switch_vlan
option device 'switch0'
option vlan '4'
option vid '4'
option ports '0t 3'
config switch_vlan
option device 'switch0'
option vlan '5'
option vid '5'
option ports '0t 2'
config switch_vlan
option device 'switch0'
option vlan '6'
option vid '6'
option ports '0t 1'
@kholisrag
Copy link
Author

IMPORTANT:
Config Different between TP-LINK TL-WR 1043ND v3 and v4
for v3 is on progress because I don't have a time to do it...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment