mirror of
				https://github.com/vdsm/virtual-dsm.git
				synced 2025-11-04 17:04:52 +08:00 
			
		
		
		
	dhclient
This commit is contained in:
		
							parent
							
								
									e1fb136057
								
							
						
					
					
						commit
						277fb74546
					
				@ -56,7 +56,7 @@ configureDHCP() {
 | 
			
		||||
 | 
			
		||||
  echo "INFO: Acquiring an IP address via DHCP using MAC address ${VM_NET_MAC}..."
 | 
			
		||||
 | 
			
		||||
  DHCP_IP=$(dhclient -v -H "${VM_NET_HOST}" "${VM_NET_TAP}" 2>&1 | grep ^bound | cut -d' ' -f3)
 | 
			
		||||
  DHCP_IP=$(dhclient -v "${VM_NET_TAP}" 2>&1 | grep ^bound | cut -d' ' -f3)
 | 
			
		||||
 | 
			
		||||
  if [[ "${DHCP_IP}" == [0-9.]* ]]; then
 | 
			
		||||
    echo "INFO: Successfully acquired IP ${DHCP_IP} from the DHCP server..."
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user