Skip to content

Instantly share code, notes, and snippets.

@psachin
Created Feb 20, 2018
Embed
What would you like to do?
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