Hello to you,

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 ) ?

Thanks !

Edward.




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

Reply via email to