Пытаюсь настроить раздачу интернета на телефон ,с помощью pan.Телефон не получает ай пи.А не получает он ай пи по тому ,что не могу настроить dhcp3-server.
вот мой /etc/dhcp3/dhcpd.conf
но сервер не стартует
вот лог
ifconfig
в чем проблема?
Сообщение отредактировал Bogd@n - 28.11.2009, 12:10
вот мой /etc/dhcp3/dhcpd.conf
Spoiler:
Код
# DHCP configuration
ddns-update-style interim;
ignore client-updates;
subnet 192.168.0.0 netmask 255.255.255.0 {
option routers 10.100.0.100;
option subnet-mask 255.255.225.0;
option domain-name-servers 10.0.0.1;
option ip-forwarding on;
range dynamic-bootp 192.168.0.100 192.168.0.104;
default-lease-time 21600;
max-lease-time 43200;
}
ddns-update-style interim;
ignore client-updates;
subnet 192.168.0.0 netmask 255.255.255.0 {
option routers 10.100.0.100;
option subnet-mask 255.255.225.0;
option domain-name-servers 10.0.0.1;
option ip-forwarding on;
range dynamic-bootp 192.168.0.100 192.168.0.104;
default-lease-time 21600;
max-lease-time 43200;
}
но сервер не стартует
Код
bogdan@bogdan-desktop:~$ sudo /etc/init.d/dhcp3-server start
* Starting DHCP server dhcpd3 * check syslog for diagnostics.
[fail]
* Starting DHCP server dhcpd3 * check syslog for diagnostics.
[fail]
[close]
вот лог
Spoiler:
Код
bogdan@bogdan-desktop:/var/log$ tail syslog
Nov 22 12:50:12 bogdan-desktop dhcpd: Wrote 0 leases to leases file.
Nov 22 12:50:12 bogdan-desktop dhcpd:
Nov 22 12:50:12 bogdan-desktop dhcpd: No subnet declaration for eth0 (10.100.0.100).
Nov 22 12:50:12 bogdan-desktop dhcpd: ** Ignoring requests on eth0. If this is not what
Nov 22 12:50:12 bogdan-desktop dhcpd: you want, please write a subnet declaration
Nov 22 12:50:12 bogdan-desktop dhcpd: in your dhcpd.conf file for the network segment
Nov 22 12:50:12 bogdan-desktop dhcpd: to which interface eth0 is attached. **
Nov 22 12:50:12 bogdan-desktop dhcpd:
Nov 22 12:50:12 bogdan-desktop dhcpd:
Nov 22 12:50:12 bogdan-desktop dhcpd: Not configured to listen on any interfaces!
Nov 22 12:50:12 bogdan-desktop dhcpd: Wrote 0 leases to leases file.
Nov 22 12:50:12 bogdan-desktop dhcpd:
Nov 22 12:50:12 bogdan-desktop dhcpd: No subnet declaration for eth0 (10.100.0.100).
Nov 22 12:50:12 bogdan-desktop dhcpd: ** Ignoring requests on eth0. If this is not what
Nov 22 12:50:12 bogdan-desktop dhcpd: you want, please write a subnet declaration
Nov 22 12:50:12 bogdan-desktop dhcpd: in your dhcpd.conf file for the network segment
Nov 22 12:50:12 bogdan-desktop dhcpd: to which interface eth0 is attached. **
Nov 22 12:50:12 bogdan-desktop dhcpd:
Nov 22 12:50:12 bogdan-desktop dhcpd:
Nov 22 12:50:12 bogdan-desktop dhcpd: Not configured to listen on any interfaces!
[close]
ifconfig
Spoiler:
Код
bogdan@bogdan-desktop:~$ ifconfig
bnep0 Link encap:Ethernet HWaddr 00:02:72:b0:00:26
inet6 addr: fe80::202:72ff:feb0:26/64 Диапазон:Ссылка
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
коллизии:0 txqueuelen:1000
RX bytes:1831 (1.8 KB) TX bytes:64 (64.0 B)
eth0 Link encap:Ethernet HWaddr 00:e0:4d:5e:64:88
inet addr:10.100.0.100 Bcast:10.100.15.255 Mask:255.255.240.0
inet6 addr: fe80::2e0:4dff:fe5e:6488/64 Диапазон:Ссылка
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:264738 errors:0 dropped:0 overruns:0 frame:0
TX packets:73364 errors:0 dropped:0 overruns:0 carrier:0
коллизии:0 txqueuelen:1000
RX bytes:107144894 (107.1 MB) TX bytes:6473856 (6.4 MB)
Прервано:16
lo Link encap:Локальная петля (Loopback)
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Диапазон:Узел
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:568 errors:0 dropped:0 overruns:0 frame:0
TX packets:568 errors:0 dropped:0 overruns:0 carrier:0
коллизии:0 txqueuelen:0
RX bytes:43143 (43.1 KB) TX bytes:43143 (43.1 KB)
pan0 Link encap:Ethernet HWaddr 00:02:72:b0:00:26
inet6 addr: fe80::202:72ff:feb0:26/64 Диапазон:Ссылка
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
коллизии:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:468 (468.0 B)
bnep0 Link encap:Ethernet HWaddr 00:02:72:b0:00:26
inet6 addr: fe80::202:72ff:feb0:26/64 Диапазон:Ссылка
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
коллизии:0 txqueuelen:1000
RX bytes:1831 (1.8 KB) TX bytes:64 (64.0 B)
eth0 Link encap:Ethernet HWaddr 00:e0:4d:5e:64:88
inet addr:10.100.0.100 Bcast:10.100.15.255 Mask:255.255.240.0
inet6 addr: fe80::2e0:4dff:fe5e:6488/64 Диапазон:Ссылка
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:264738 errors:0 dropped:0 overruns:0 frame:0
TX packets:73364 errors:0 dropped:0 overruns:0 carrier:0
коллизии:0 txqueuelen:1000
RX bytes:107144894 (107.1 MB) TX bytes:6473856 (6.4 MB)
Прервано:16
lo Link encap:Локальная петля (Loopback)
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Диапазон:Узел
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:568 errors:0 dropped:0 overruns:0 frame:0
TX packets:568 errors:0 dropped:0 overruns:0 carrier:0
коллизии:0 txqueuelen:0
RX bytes:43143 (43.1 KB) TX bytes:43143 (43.1 KB)
pan0 Link encap:Ethernet HWaddr 00:02:72:b0:00:26
inet6 addr: fe80::202:72ff:feb0:26/64 Диапазон:Ссылка
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
коллизии:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:468 (468.0 B)
[close]
в чем проблема?
Сообщение отредактировал Bogd@n - 28.11.2009, 12:10