LINUX.ORG.RU
решено ФорумAdmin

dhcp3-server и Ubuntu 10.10


0

1

syslog пишет:

Feb 5 21:18:05 zakhar-gig dhcpd: No subnet declaration for eth1 (10.2.2.1). Feb 5 21:18:05 zakhar-gig dhcpd: ** Ignoring requests on eth1. If this is not what Feb 5 21:18:05 zakhar-gig dhcpd: you want, please write a subnet declaration Feb 5 21:18:05 zakhar-gig dhcpd: in your dhcpd.conf file for the network segment Feb 5 21:18:05 zakhar-gig dhcpd: to which interface eth1 is attached. ** Feb 5 21:18:05 zakhar-gig dhcpd: Feb 5 21:18:05 zakhar-gig dhcpd: Feb 5 21:18:05 zakhar-gig dhcpd: Not configured to listen on any interfaces!

ifconfig -a

eth0 Link encap:Ethernet HWaddr 1c:6f:65:**:**:** inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::1e6f:65ff:fe81:c709/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:103172 errors:0 dropped:0 overruns:0 frame:0 TX packets:82610 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:136051591 (136.0 MB) TX bytes:8067350 (8.0 MB) Interrupt:44 Base address:0x4000

eth1 Link encap:Ethernet HWaddr 00:80:48:**:**:** inet addr:10.2.2.1 Bcast:10.2.2.255 Mask:255.255.255.0 inet6 addr: fe80::280:48ff:fe2f:ae8c/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:199 errors:0 dropped:0 overruns:0 frame:0 TX packets:207 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:20377 (20.3 KB) TX bytes:32106 (32.1 KB) Interrupt:20 Base address:0xbe00

lo Link encap:Локальная петля (Loopback) inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:64 errors:0 dropped:0 overruns:0 frame:0 TX packets:64 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:6185 (6.1 KB) TX bytes:6185 (6.1 KB)

nterfaces

auto lo iface lo inet loopback iface eth0 inet static address 192.168.1.2 netmask 255.255.255.0 gateway 192.168.1.1 auto eth0 iface eth1 inet static address 10.2.2.1 netmask 255.255.255.0 gateway 192.168.1.1 auto eth1

dhcp.conf

subnet 10.2.2.0 netmask 255.255.255.0 { option routers 10.2.2.1; option subnet-mask 255.255.255.0; option domain-name-servers 212.96.96.38; option domain-name-servers 212.96.104.129; range 10.2.2.10 10.2.2.254; default-lease-time 21600; max-lease-time 28800; }

cat /etc/default/dhcp3-server

# Defaults for dhcp initscript # sourced by /etc/init.d/dhcp # installed at /etc/default/dhcp3-server by the maintainer scripts

# # This is a POSIX shell fragment #

# On what interfaces should the DHCP server (dhcpd) serve DHCP requests? # Separate multiple interfaces with spaces, e.g. «eth0 eth1». INTERFACES=«eth1»

eth0 смотрит в инет, eth1 локалка

Помогите разобраться пожалуйста!



Последнее исправление: Metallbrazer (всего исправлений: 1)

Ответ на: комментарий от Metallbrazer

в LORCODE сложно было все оформить? теперь глаза разломать можно ищя ошибку...
dhcp.conf или dhcpd.conf?
И можно все таки отформатировать нормально вывод cat /etc/network/interfaces ?

dgeliko ★★
()

Отформатируй как следует в LORCODE сперва, если хочешь чтоб другие люди помголи тебе разобраться

Смущают «auto eth0 iface eth1» и «gateway 192.168.1.1 auto eth1» Это ты так криво вставил или оно так криво есть?
«option domain-name-servers 212.96.96.38; option domain-name-servers 212.96.104.129;» заменить на «option domain-name-servers 212.96.96.38, 212.96.104.129;»

adriano32 ★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.