DHCP server with NAT

# DHCP Client

#1. DHCP sunucusuna giren adamin,  ping atabilmesi icin, asagidaki komutu yazmasi gerekir.  NAmeserver olarak dhcp sunucusunu vermesi gerekir. 

nameserver 172.20.0.1
# bunu yazdiktan sonra ping atiyor. ama Dosya indiremiyor.

DHCP SERVER

# If the client wants to connect  internet,  The DHCP server should enable  ip forwarding, after that

should   SET default GATeway  to   NAT router GW.

route add default gw 192.168.122.1

 route add default gw 192.168.122.1

Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.122.1 0.0.0.0 UG 0 0 0 eth2
0.0.0.0 172.20.0.1 0.0.0.0 UG 0 0 0 eth0
172.10.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1