|
最近在玩openwrt,安装的原版无设置页面的openwrt,刚开始学就遇到问题了:
家里有一个普通路由器,我想用703把网线转为无线,下面是我配置参数
**********************************************************
----------------------------------------------------------------------------------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 'fd98:f2b0:ec65::/48'
config interface 'lan'
# option ifname 'eth0'
option type 'bridge'
option proto 'static'
option ipaddr '192.168.0.1'
option netmask '255.255.255.0'
# option ip6assign '60'
config interface 'wan'
option ifname 'eth0'
option _orig_ifname 'eth0'
option _orig_bridge 'false'
option proto 'dhcp'
**********************************************************
------------------------------------------------------------------------------------wireless
config wifi-device radio0
option type mac80211
option channel 11
option hwmode 11ng
option path 'platform/ar933x_wmac'
option htmode HT20
list ht_capab SHORT-GI-20
list ht_capab SHORT-GI-40
list ht_capab RX-STBC1
list ht_capab DSSS_CCK-40
# REMOVE THIS LINE TO ENABLE WIFI:
# option disabled 1
config wifi-iface
option device radio0
option network lan
option mode ap
option ssid OpenWrt
option encryption none
**********************************************************
---------------------------------------------------------------------------------------dhcp
config dnsmasq
option domainneeded 1
option boguspriv 1
option filterwin2k 0 # enable for dial on demand
option localise_queries 1
option rebind_protection 1 # disable if upstream must serve RFC1918 addresses
option rebind_localhost 1 # enable for RBL checking and similar services
#list rebind_domain example.lan # whitelist RFC1918 responses for domains
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'
#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
option interface lan
option start 100
option limit 150
option leasetime 12h
config dhcp wan
option interface wan
option ignore 1
**********************************************************
想法是想用wan获取上级路由ip,然后通过lan转发,但是设置好后,手机和电脑都不能正确获取ip地址,把电脑ip设置为192.168.0.12后可以连路由,但是无法上网,真心不知道怎么设置啊!求大神帮助啊!!!
ps:还个小问题,百度找不到答案
1.703只有一个网口,是不是表示 只有一个eth0?没有eth0.1 eth0.2?
|
|