Skip to content

Instantly share code, notes, and snippets.

@ooonea
Created October 30, 2019 09:11
Show Gist options
  • Save ooonea/2f36fb5eb58c256e9c0f0cea13957b4a to your computer and use it in GitHub Desktop.
Save ooonea/2f36fb5eb58c256e9c0f0cea13957b4a to your computer and use it in GitHub Desktop.
/etc/config/network on Turris OS 3.11.8
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 'fd2a:5be2:a9d1::/48'
config interface 'lan'
option ifname 'eth0 eth2'
option force_link '1'
option type 'bridge'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
config interface 'wan'
option _orig_ifname 'eth1'
option _orig_bridge 'false'
option proto 'pppoe'
option ifname 'eth1.xxx'
option username 'phone_number'
option password 'passwd'
option ipv6 '0'
config interface 'wan6'
option proto 'none'
option ifname '@wan'
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 5'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '4 6'
config interface 'guest_turris'
option enabled '1'
option type 'bridge'
option proto 'static'
option ipaddr '10.111.222.1'
option netmask '255.255.255.0'
option bridge_empty '1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment