[olug] More DHCP Help

Jason Ferguson jferguson3 at home.com
Sat Mar 17 17:17:57 UTC 2001


Phil Brutsche wrote:

> > Problem 2: I want to run a DHCP server on eth1. This will handle all the
> > masqueraded machines.  I have modified the init script to start dhcp
> > like this: "dhcp eth1" to have it start on eth1.
>
> What I've done is have the dhcpd init script "source" /etc/default/dhcp.
> That sets the environment variable "INTERFACES"; the dhcp init script was
> also altered to tack that variable onto the end of the dhcpd command line.
>
>

Okay, fortunately, you and I use the same distro (tho Im eying Progeny once
it gets done, RC 1 just came out).

However, I dont quite understand that last paragraph (need a few hits from
the Clue Hammer (tm)).  First, I did remove pump (i had both pump and
dhclient installed, stupid me).

Here's the content the /etc/default directory:

total 8
-rw-r--r--    1 root     root           92 Feb 23 15:13 devpts
-rwxr--r--    1 root     root          641 Feb 23 15:15 rcS

Are you telling me to move my dhcp init script from /etc/init.d to
/etc/default?

Jason

> > Now, I try to start the dhcp server and get this:
> >
> >     No subnet declaration for eth1 (0.0.0.0).
> >     Please write a subnet declaration in your dhcpd.conf file for the
> >     network segment to which interface eth1 is attached.
> >     exiting.
> >
> > Here is what is in my dhcpd.conf:
> >
> > # option definitions common to all supported networks...
> > option domain-name "blvue1.ne.home.com";
> > option domain-name-servers 24.3.232.33, 24.3.232.34;
> >
> > option subnet-mask 255.255.255.224;
> > default-lease-time 600;
> > max-lease-time 7200;
> >
> > subnet 192.168.1.0 netmask 255.255.255.0 {
> >   range 192.168.1.100 192.168.1.200;
> > }
> >
> > Okay, now, what do I need to fix to get this working right? Im running
> > out of time to get my @home-mandated reconfiguration done.
>
> The dhcpd.conf is fine but eth1 needs an IP number in the 192.168.1/24
> range - either 192.168.1.1 or 192.168.1.254 is what most people would tend
> to use.
>
> - --
> - ----------------------------------------------------------------------
> Phil Brutsche                                   pbrutsch at creighton.edu
>
> GPG fingerprint: BDA4 C23C 1989 31FF CBE8  7EB4 6CA7 9636 941E 8451
> GPG key id: 941E8451
> GPG public key: http://www.creighton.edu/~pbrutsch/public-key.asc
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.4 (GNU/Linux)
> Comment: Made with pgp4pine
>
> iD8DBQE6s5RDbKeWNpQehFERAo8HAKCZrpMC6/EPsu9Jg/JUk5dH3JvH6QCfZNBI
> eSovvHsc6efnDYO3vhsd5os=
> =Imvl
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: olug-unsubscribe at bstc.net
> For additional commands, e-mail: olug-help at bstc.net

--
#define m(i)(x[i]^s[i+84])<<
unsigned char x[5],y,s[2048];main(n){for(read(0,x,5);read(0,s,n=2048);write(1,s
,n))if(s[y=s[13]%8+20]/16%4==1){int i=m(1)17^256+m(0)8,k=m(2)0,j=m(4)17^m(3)9^k
*2-k%8^8,a=0,c=26;for(s[y]-=16;--c;j*=2)a=a*2^i&1,i=i/2^j&1<<24;for(j=127;++jy)c+=y=i^i/8^i>>4^i>>12,i=i>>8^y<<17,a^=a>>14,y=a^a*8^a<<6,a=a>>8^y<<9,k=s
[j],k="7Wo~'G_\216"[k&7]+2^"cr3sfw6v;*k+>/n."[k>>4]*2^k*257/8,s[j]=k^(k&k*2&34)
*6^c+~y;}}




---------------------------------------------------------------------
To unsubscribe, e-mail: olug-unsubscribe at bstc.net
For additional commands, e-mail: olug-help at bstc.net



More information about the OLUG mailing list