Skip to content

Instantly share code, notes, and snippets.

@psachin
Created February 20, 2018 14:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save psachin/e9a11eef873fef5644ce69e26d8de046 to your computer and use it in GitHub Desktop.
Save psachin/e9a11eef873fef5644ce69e26d8de046 to your computer and use it in GitHub Desktop.
D-Link DIR-615 "shark" file: /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 interface 'lan'
option ifname 'eth0'
option type 'bridge'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option gateway '192.168.1.1'
option delegate '0'
config interface 'wan'
option ifname 'eth1'
option proto 'pppoe'
option username 'USERNAME'
option password 'PASSWORD'
option macaddr 'CLONED_MAC_ADDR'
option service 'ISP_SERVICE_NAME'
option mtu '1500'
option disable_ipv6 '1'
option delegate '0'
config switch
option reset '1'
option name 'switch0'
option enable_vlan '1'
config switch_vlan
option vlan '1'
option ports '0 1 2 3 4'
option device 'switch0'
option vid '1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment