Chce ustawić dhcp-forwarder ale coś mi się nie udaje
ustawienia fonery
/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.254
option netmask 255.255.255.0
option gateway 192.168.1.254
option dns 192.168.1.254
config interface wan
option proto static
option ipaddr 192.168.0.100
option netmask 255.255.255.0
option gateway 192.168.0.254
option dns 192.168.0.254
/etc/config/wireless
config wifi-device wifi0
option type atheros
option channel 5
config wifi-iface
option device wifi0
option network lan
option mode ap
option ssid manius2
option hidden 0
option encryption psk2
option key haslo
config wifi-iface
option device wifi0
option network wan
option mode sta
option ssid manius
option encryption psk2
option key haslo
ifconfig
root@OpenWrt:~# ifconfig
ath0 Link encap:Ethernet HWaddr 00:18:84:82:EB:1D
inet addr:192.168.0.100 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:900 errors:0 dropped:0 overruns:0 frame:0
TX packets:358 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:436142 (425.9 KiB) TX bytes:62478 (61.0 KiB)
ath1 Link encap:Ethernet HWaddr 06:18:84:82:EB:1D
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:67 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:10690 (10.4 KiB)
br-lan Link encap:Ethernet HWaddr 00:18:84:82:EB:1C
inet addr:192.168.1.254 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:514 errors:0 dropped:0 overruns:0 frame:0
TX packets:426 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:78033 (76.2 KiB) TX bytes:237938 (232.3 KiB)
eth0 Link encap:Ethernet HWaddr 00:18:84:82:EB:1C
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:531 errors:0 dropped:0 overruns:0 frame:0
TX packets:427 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:87461 (85.4 KiB) TX bytes:238981 (233.3 KiB)
Interrupt:4 Base address:0x1000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:96 (96.0 B) TX bytes:96 (96.0 B)
wifi0 Link encap:UNSPEC HWaddr 00-18-84-82-EB-1D-00-00-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3816 errors:0 dropped:0 overruns:0 frame:65
TX packets:534 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:195
RX bytes:696481 (680.1 KiB) TX bytes:96336 (94.0 KiB)
Interrupt:3 Memory:b0000000-b00ffffc
iwconfig
root@OpenWrt:~# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
br-lan no wireless extensions.
wifi0 no wireless extensions.
ath0 IEEE 802.11g ESSID:"manius" Nickname:""
Mode:Managed Frequency:2.432 GHz Access Point: 00:1D:60:46:92:08
Bit Rate:36 Mb/s Tx-Power:18 dBm Sensitivity=1/1
Retry:off RTS thr:off Fragment thr:off
Encryption key:xxxxxxxxxxxxxxxxxx
Security mode:restricted
Power Management:off
Link Quality=35/70 Signal level=-61 dBm Noise level=-96 dBm
Rx invalid nwid:119 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
ath1 IEEE 802.11g ESSID:"manius2" Nickname:""
Mode:Master Frequency:2.432 GHz Access Point: 06:18:84:82:EB:1D
Bit Rate:0 kb/s Tx-Power:18 dBm Sensitivity=1/1
Retry:off RTS thr:off Fragment thr:off
Encryption key:xxxxxxxxxxxxxx
[3] Security mode:open
Power Management:off
Link Quality=35/70 Signal level=-61 dBm Noise level=-96 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
plik /etc/dhcp-fwd.conf
http://wklej.org/id/126149/
asus ma przydzielac IP (192.168.0.254 -> asus)
192.168.1.254 -> fonera
z takimi ustawieniami fonera pobiera i rozdziela net dalej ale nie przydziela ip z asusa
root@OpenWrt:~# /etc/init.d/dhcp-fwd start
ioctl(): Cannot assign requested address
Can not get interface information
Edytowany przez manius dnia 26-07-2009 00:56
Pozdrawiam Marcin
|