Backup existing static configuration
1 |
cp /etc/sysconfig/network-scripts/ifcfg-eth0 /root/ifcfg-eth0.bak |
config dhcp client
1 |
vi /etc/sysconfig/network-scripts/ifcfg-eth0 |
contoh config DHCP bawaan os seperti dibawah ini:
1 2 3 4 5 6 |
DEVICE=eth0 BOOTPROTO=static HWADDR=00:19:D1:2A:BA:A8 IPADDR=10.10.29.66 NETMASK=255.255.255.192 ONBOOT=yes |
Ganti settingan config DHCP serperti di bawah
1 2 3 4 |
DEVICE=eth0 BOOTPROTO=dhcp HWADDR=00:19:D1:2A:BA:A8 ONBOOT=yes |
lalu save dan restart
1 |
/etc/init.d/network restart |