OpenWrt/TP-Link TL-MR3020: Difference between revisions

From Wiki
(Die Seite wurde neu angelegt: „/config/network <blockquote> <pre> config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0…“)
 
No edit summary
Line 9: Line 9:


config interface 'lan'
config interface 'lan'
option ifname 'eth0'
option type 'bridge'
option proto 'static'
option proto 'static'
option ipaddr '192.168.111.20'
option ipaddr '192.168.111.20'
Line 23: Line 21:
<pre>
<pre>
config dnsmasq
config dnsmasq
option domainneeded 1
option domainneeded '1'
option boguspriv 1
option boguspriv '1'
option filterwin2k 0 # enable for dial on demand
option filterwin2k '0'
option localise_queries 1
option localise_queries '1'
option rebind_protection 1 # disable if upstream must serve RFC1918 addresses
option rebind_protection '1'
option rebind_localhost 1 # enable for RBL checking and similar services
option rebind_localhost '1'
#list rebind_domain example.lan  # whitelist RFC1918 responses for domains
option local '/lan/'
option local '/lan/'
option domain 'lan'
option domain 'lan'
option expandhosts '1'
option expandhosts 1
option nonegcache '0'
option nonegcache 0
option authoritative '1'
option authoritative 1
option readethers '1'
option readethers 1
option leasefile '/tmp/dhcp.leases'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.auto'
option resolvfile '/tmp/resolv.conf.auto'
#list server '/mycompany.local/1.2.3.4'
#option nonwildcard 1
#list interface br-lan
#list notinterface lo
#list bogusnxdomain    '64.94.110.11'


config dhcp lan
config dhcp 'lan'
option interface lan
option interface 'lan'
option ignore 1
option ignore '1'
option start 100
 
option limit 150
config dhcp 'wan'
option leasetime 12h
option interface 'wan'
option ignore '1'
 
config dhcp
option start '100'
option leasetime '12h'
option limit '150'
option interface 'eth'


config dhcp wan
option interface wan
option ignore 1
</pre>
</pre>
</blockquote>
</blockquote>

Revision as of 13:10, 1 August 2012

/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 proto 'static'
	option ipaddr '192.168.111.20'
	option netmask '255.255.255.0'
	option gateway '192.168.111.1'
	list dns '192.168.111.1'

/config/dhcp

config dnsmasq
	option domainneeded '1'
	option boguspriv '1'
	option filterwin2k '0'
	option localise_queries '1'
	option rebind_protection '1'
	option rebind_localhost '1'
	option local '/lan/'
	option domain 'lan'
	option expandhosts '1'
	option nonegcache '0'
	option authoritative '1'
	option readethers '1'
	option leasefile '/tmp/dhcp.leases'
	option resolvfile '/tmp/resolv.conf.auto'

config dhcp 'lan'
	option interface 'lan'
	option ignore '1'

config dhcp 'wan'
	option interface 'wan'
	option ignore '1'

config dhcp
	option start '100'
	option leasetime '12h'
	option limit '150'
	option interface 'eth'


Block Device (root from usb stick)

opkg update
opkg install kmod-usb-uhci
insmod uhci
opkg install kmod-usb-ohci
insmod usb-ohci

opkg install kmod-usb-storage block-mount kmod-fs-ext4 kmod-nls-cp437 kmod-nls-cp850 kmod-nls-iso8859-1 kmod-nls-iso8859-15 kmod-scsi-core e2fsprogs fdisk


USB-Sound

opkg update
opkg install kmod-usb-audio kmod-sound-core madplay usbutils alsa-utils


Clear Flash

mtd -r erase rootfs_data