Skip to content

Instantly share code, notes, and snippets.

@schwagdawg
Forked from corny/network
Last active August 29, 2015 14:19
Show Gist options
  • Save schwagdawg/48cf64ff6bcf7e6a26c1 to your computer and use it in GitHub Desktop.
Save schwagdawg/48cf64ff6bcf7e6a26c1 to your computer and use it in GitHub Desktop.
#/etc/config/network
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 'fdaa:ec6b:a862::/48'
config interface 'lan'
option type 'bridge'
option ifname 'eth0 eth1'
option proto 'none'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '0 1 2 3 4'
config interface 'uplink'
option proto 'dhcp'
config interface 'staticbridge'
option proto 'relay'
option network 'lan uplink'
#/etc/config/wireless
config wifi-device 'radio0'
option type 'mac80211'
option hwmode '11g'
option path 'platform/qca953x_wmac'
option htmode 'HT20'
option txpower '20'
option country 'DE'
config wifi-iface
option device 'radio0'
option mode 'sta'
option network 'uplink'
option encryption 'psk'
option ssid 'YourWirelessNetwork'
option key 'YourWirelessPassword'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment