🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.os.linux.debian
Article #42114

Re: dhcp serwer na interfejsie wirtualnym

#42114
From: andromeda
Date: Fri, 18 Nov 2011 15:50
38 lines
2188 bytes
Dnia Thu, 17 Nov 2011 23:07:26 +0100, Masterson napisał(a):

> Witam.
> 
> Czy da się uruchomić serwer dhcp na interfejsie wirtualnym?
> 
> Dodałem interfejs eth0:1 ustawiłem wszystko jak należy, ale przy próbie
> startu w logach mam to co na końcu wpisu.
> 
> Jak zrobię analogiczną konfigurację na interfejsie fizycznym to wszystko
> działa jak należy. Jak to ugryźć?
> 
> Konfiguracja:
> /etc/network/interfaces iface eth0:1 inet static address 10.10.10.1
> netmask 255.255.255.0
> 
> /etc/default/isc-dhcp-server INTERFACES="eth0:1
> 
> /etc/dhcp/dhcpd.conf subnet 10.10.10.0 netmask 255.255.255.0 {
> range 10.10.10.50 10.10.10.100;
> option domain-name "debian";
> option domain-name-servers 10.10.10.1, 8.8.8.8;
> option broadcast-address 10.10.10.255;
> option routers 10.10.10.1;
> }

Musisz zgrupować ustawienia dla eth0 i dla eth0:1
Opisałem to na swojej stronie w miejscu dotyczącego dhcp:
http://a-bog.info.tm/kku/2/2podstawowe_uslugi_i_ich_konfiguracja.html

Konfigurujesz dhcp zarówno dla eth0 jak i eth0:1 . Dla eth0 możesz 
ustawić jakiś 1 host o adresie mac "z kosmosu", a dla eth0:1 
przeprowadzisz własciwe ustawienia, w rezultacie doprowadzi do tego że 
obsługiwany będzie przez dhcpd tylko eth0:1.
-- 
_________________________
Pozdrawiam
http://a-bog.info.tm
Technical Details
Message-ID: <ja5usd$2v3$1@node2.news.atman.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
References: <ja40j5$4l2$1@inews.gazeta.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
From: andromeda <jakis@email.com.pl>
Newsgroups: pl.comp.os.linux.debian
Subject: Re: dhcp serwer na interfejsie wirtualnym
Date: Fri, 18 Nov 2011 15:50:37 +0000 (UTC)
Organization: ATMAN - ATM S.A.
Lines: 39
Message-ID: <ja5usd$2v3$1@node2.news.atman.pl>
References: <ja40j5$4l2$1@inews.gazeta.pl>
NNTP-Posting-Host: 89-79-250-164.dynamic.chello.pl
Mime-Version: 1.0
X-Trace: node2.news.atman.pl 1321631437 3043 89.79.250.164 (18 Nov 2011 15:50:37 GMT)
X-Complaints-To: usenet@atman.pl
NNTP-Posting-Date: Fri, 18 Nov 2011 15:50:37 +0000 (UTC)
User-Agent: Pan/0.135 (Tomorrow I'll Wake Up and Scald Myself with Tea; GIT 30dc37b master)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit