-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, 17 Nov 2002 00:22:02 +0800, [EMAIL PROTECTED] wrote:

> I have just reset the configuration of NAT...
> But the client can't connected to the Internet with "priavte ip" by
> using DHCP !
> 
> IP address of client ( set IP address manually ) :
> 
> C:\>ipconfig
> 
> Windows 2000 IP Configuration
> 
> Ethernet adapter :
> 
>         Connection-specific DNS Suffix  . :
>         IP Address. . . . . . . . . . . . : 172.16.0.3
>         Subnet Mask . . . . . . . . . . . : 255.255.255.0
>         Default Gateway . . . . . . . . . : 172.16.0.254
> 
> C:\>
> 
> My Config files :
> 
> /etc/sysconfig/network-scripts/ifcfg-eth1 :
> DEVICE=eth1
> BROADCAST=172.16.0.255
> IPADDR=172.16.0.254
> NETMASK=255.255.255.0
> NETWORK=172.16.0.0
> ONBOOT=yes
> 
> /etc/rc.d/rc.local :
> modprobe ip_nat_ftp
> modprobe ip_conntrack
> modprobe ip_conntrack_ftp
> modprobe ip_conntrack_irc
> iptables -t nat -A POSTROUTING -o eth0 -s 172.16.0.0/24 -j MASQUERADE
> 
> /etc/dhcpd.conf :
> 
> subnet 172.16.0.0 netmask 255.255.255.0 {
>         range 172.16.0.1 172.16.0.250;
>         default-lease-time 86400;
>         max-lease-time 86400;
>         option broadcast-address 172.16.0.255;
>         option routers 172.16.0.254;
>         option domain-name-servers 202.175.xxx.xxx;
> }
> 
> /etc/rc.d/init.d/dhcpd start :
> 
> [root@host root]# /etc/rc.d/init.d/dhcpd start
> Starting dhcpd: Internet Software Consortium DHCP Server 2.0pl5
> Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software
> Consortium. All rights reserved.
> 
> Please contribute if you find this software useful.
> For info, please visit http://www.isc.org/dhcp-contrib.html
> 
> Listening on Socket/eth1/172.16.0.0
> Sending on   Socket/eth1/172.16.0.0
> No subnet declaration for eth0 (202.175.xxx.xxx).
> Please write a subnet declaration in your dhcpd.conf file for the
> network segment to which interface eth0 is attached.
> exiting.
>                                                            [FAILED]
> [root@host2 root]#
> 
> PS : the system of my company is Redhat 7.2 and the following setting
> : eth0 : connected to the Internet with lease line ( Public IP address
> ) eth1 : connected with HUB and other clients ( NAT + DHCP )
> 
> So, can you help me more ( setting of dhcp.conf ) ?

Your DHCP server fails to start because it has not been configured
completely for all your network interfaces. From the top of my head,
the following entry for the subnet, where your public IP addr is
from, should suffice. Substitute the missing values:

subnet 202.175.???.??? netmask 255.???.???.??? {
    not authoritative;
}

People more familiar with DHCP might give you better advice.

- -- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE91oi10iMVcrivHFQRAlimAJ4gTm9DLgIFo2neDZ6QcpL0FZJ34gCfdzpD
iUWXHox0qOy08ln5HHvfjKU=
=OYJ6
-----END PGP SIGNATURE-----



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to