openwrt 라즈베리파이에 올리기
글쓴이: dlxoghk1 / 작성시간: 화, 2016/10/04 - 2:07오후
https://kldp.org/node/153440 를 보고 라즈베리파이에 openwrt를 올려서 와이파이가 뜨는 것까지 확인을 했습니다.
그런데 폰으로 wifi에 접속후 인터넷을 켜니 인터넷이 되지 않습니다.
설정은 저기 있는 문서 그대로 했는데 뭐가 잘못되 있는 걸까요?
/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 ipaddr '192.168.1.1' option netmask '255.255.255.0' option ip6assign '60' option proto 'dhcp' config interface 'wlan' option proto 'static' option ipaddr '192.168.100.1' option netmask '255.255.255.0' config globals 'globals' option ula_prefix 'fd50:51a7:b940::/48'
/etc/config/wireless
config wifi-device radio0 option type mac80211 option channel 6 option hwmode 11g option path 'platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.0' option htmode HT20 # REMOVE THIS LINE TO ENABLE WIFI: config wifi-iface option device radio0 option network wlan option mode ap option ssid OpenWrt option encryption none
/etc/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' option localservice '1' config dhcp 'lan' option interface 'lan' option start '100' option limit '150' option leasetime '12h' option dhcpv6 'server' option ra 'server' config dhcp 'wan' option interface 'wan' option ignore '1' config dhcp 'wlan' option interface 'wlan' option start '100' option limit '150' option leasetime '12h' config odhcpd 'odhcpd' option maindhcp '0' option leasefile '/tmp/hosts/odhcpd' option leasetrigger '/usr/sbin/odhcpd-update'
/etc/config/firewall
onfig defaults option syn_flood 1 option input ACCEPT option output ACCEPT option forward REJECT # Uncomment this line to disable ipv6 rules # option disable_ipv6 1 config zone option name lan list network 'lan' option input ACCEPT option output ACCEPT option forward REJECT config zone option name wan list network 'wan' list network 'wan6' option input REJECT option output ACCEPT option forward REJECT option masq 1 option mtu_fix 1 config zone option name wlan list network wlan option input ACCEPT option output ACCEPT option forward REJECT option masq 1 config forwarding option src lan option dest wan config forwarding option src wlan option dest lan
설정값입니다. 도와주세요 ㅜ
Forums:
댓글 달기