Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

Re: lug-bg: dhcpd


  • Subject: Re: lug-bg: dhcpd
  • From: borj@xxxxxxxxx (Boris Jordanov)
  • Date: Fri, 18 May 2001 17:42:53 +0300



Stoian Mishev wrote:

> imame slednata situacia
> edna C class mreva (primerno 192.168.1.0/24)
> w LAN-a sa zakacheni okolo 100 PC-ta (wsqko e s nqkakwo IP i daden GW Linux-a
> kojto e na 192.168.0.1)
> no she se smenq dostawchika i IP-tata shte sa primerno 10.0.0.0/24
> bih iskal da pusna DHCPd kojto da rapryskwa IP-tata po MAC adresi
> ta wyprosa mi e kak naj lesno da wzema MAC addressite na wsichki LAN-ki w
> mrevata i da naprawq conf file za dhcp-to ? warianta za kojto se seshtam e
> naj slovnia .... wzemam na wqka mashina MAC-a i posle wywevdam na ryka, koeto
> nqma smisyl da obqsnqwam che e dosta slovno i wremezaemashto :)))
> ta nqkoj ako e imal podoben problem i go reshil po-inteligentno pls. reply :)
>
> --
> stuckoff
> e-mail: stuckoff@xxxxxxxxxxxx
> ICQ #: 5079105
> GSM: 088/435168
> ===========================================================================
> A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
> http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora

Eto edin _MNOGO_ tup script(no rabotesht, pone pri men de, murzeshe me da go
pisha po-svesten). Dava IP, MAC i hostname. Razbira se moze da go karash da vadi
kakvoto ti trjabva na teb.

#!/usr/pkg/bin/bash

tartIP="1"
endIP="255"

while [ $startIP != $endIP ]; do
host="192.168.1."$startIP
ping -c 1 $host > /dev/null
echo -n $host
arp $host|awk {'print "\t" $4 "\t"$1'}
startIP=` expr $startIP + 1 `
done

===========================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora


  • Относно:
    • lug-bg: dhcpd
      • Изпратено от: stuckoff@xxxxxxxxxxxx (Stoian Mishev)

 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.