DHCP server with NAT

image_pdfimage_print

# 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

 

 

 

 

 

 

 

 

This entry was posted in Personal. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.