Sunday, September 26, 2010

How to stop DHCP on a specific vmnet subnet ?

Here we will see how we can stop the DHCP service on VMNET3 subnet of VMWARE.  It took me around 5 hrs to search this, while the answer was right beneath my nose :-D

bala@bala-laptop:~$ sudo /usr/lib/vmware/net-services.sh     stop    3
[sudo] password for bala:
   DHCP server on /dev/vmnet3                                          done
   NAT service on /dev/vmnet3                                           done
   Host-only networking on /dev/vmnet3                            done
bala@bala-laptop:~$ sudo /usr/lib/vmware/net-services.sh     start    3
   Host-only networking on /dev/vmnet3 (background)      done
   DHCP server on /dev/vmnet3                                          done
   NAT service on /dev/vmnet3                                            done

All we need to do is to follow the first command with the word DHCP.

bala@bala-laptop:~$ sudo /usr/lib/vmware/net-services.sh    stop    3   dhcp
   DHCP server on /dev/vmnet3                                          done
bala@bala-laptop:~$


.

No comments:

Post a Comment