DNS & DHCP on CentOS 5.7 4/12/54 อ. ดรัสวิน วงศ์ปรเมษฐ์
-
Upload
alexandra-chapman -
Category
Documents
-
view
232 -
download
0
Transcript of DNS & DHCP on CentOS 5.7 4/12/54 อ. ดรัสวิน วงศ์ปรเมษฐ์
DNS & DHCP on CentOS 5.74/12/54อ.ดรั�สวิ�น วิงศ์�ปรัเมษฐ์�
Infrastructure
How toSet Static IP
/etc/sysconfig/networking/profiles/default/ifcfg-eth0
Install “ DNSMASQ ” packetConfig
/etc/hosts/etc/resolv.conf/etc/dnsmasq.conf
Start Service “ DNSMASQ ”
Tools & CommandsTools
Nano – Text EditorCommands
ifconfig - view / add ip address nano - run nano editor rpm - operate packet rpm cd - go to directory ls - list file / folder in directory service - operate service chkconfig - check service nslookup- show dns server
Tools & Commandsrpm
- i - install-h, -v - show “#” while operate-e - erase/uninstall-nodeps - disable dependent other
node-qa - list all installed packet
other option| more - viwe more page
Tools & Commands#chkconfig --listlevel
0 - halt (Do NOT set initdefault to this)1 - Single user mode2 - Multiuser, without NFS (The same as 3, if you do not have networking)3 - Full multiuser mode4 - unused5 - X116 - reboot (Do NOT set initdefault to this)
How toSet Static IP
#nano /etc/sysconfig/networking/profiles/default/ifcfg-eth0
# ifdown eth0# ifup eth0
How toInstall “ DNSMASQ ” packet#rpm -ivh dnsmasq-2.59-1.el5.rfx.x86_64.rpm
Unistall packet#rpm -evh --nodeps xxxxxxxx.rpm
How toConfig
#nano /etc/hosts
How toConfig
#nano /etc/resolv.conf
How toConfig
#nano /etc/dnsmasq.conf
uncomment and set the following options expand-hostsdomain=example.comdhcp-range=192.168.0.50,192.168.0.150,12hdhcp-host=11:22:33:44:55:66,foo,192.168.0.10
How toStart Service “ DNSMASQ ”
#service dnsmasq start
Check IP on your Client