Skip to content

Instantly share code, notes, and snippets.

@dwhacks
Last active December 13, 2020 20:53
Show Gist options
  • Save dwhacks/8854b520a9ca14d347cff82be5c0ae0e to your computer and use it in GitHub Desktop.
Save dwhacks/8854b520a9ca14d347cff82be5c0ae0e to your computer and use it in GitHub Desktop.
/etc/config/network new
# /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 'fda2:ed20:3b24::/48'
config interface 'lan10'
option ifname 'eth1.10' #change this to vlan 10, as this is my "main" network
option type 'bridge'
option proto 'static'
option ipaddr '192.168.2.3'
option gateway '192.168.2.1'
option dns '192.168.2.1'
option netmask '255.255.255.0'
option hostname 'ballzDeep'
config interface 'lan20'
option ifname 'eth1.20' #change this to vlan 20, as this is my "IOT" network
option type 'bridge'
option proto 'static'
option ipaddr '192.168.20.3'
option gateway '192.168.20.1'
option dns '192.168.20.1'
option netmask '255.255.255.0'
option hostname 'ballz20Deep'
config interface 'lan69'
option ifname 'eth1.69' #vlan 69 for guests
option type 'bridge'
option proto 'static'
option ipaddr '192.168.69.3'
option gateway '192.168.69.1'
option dns '192.168.69.1'
option netmask '255.255.255.0'
option hostname 'ballz69Deep'
#config interface 'wan'
# option ifname 'eth1'
# option proto 'static'
# option delegate '0'
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 switch_vlan
option device 'switch0'
option vlan '10'
option ports '0 1 2 3 4'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment