Google

de todo para todo  
 
  vlsm 19-04-2024 01:05 (UTC)
   
 
Calculadora VLSM
Direccion de red:
/>

Mascaras de red (Separadas por coma ','. Ej: 20,21,24,29,30,30):



255){ die('Direccion de red incorrecta'); } } asort($masks); $next_addr = $addr_parts; foreach($masks as $mask){ if(!is_numeric($mask) || $mask < 10 || $mask > 32){ die("Mascara de red incorrecta: $mask"); } $subnet = array( 'addr' => '', 'mask' => '', 'bit_mask' => '', 'host_min' => '', 'host_max' => '', 'broadcast' => '', 'wildcard' => '' ); $subnet['addr'] = implode('.', $next_addr); $current_addr = $next_addr; $mask_octets = array(); $wilcard_octets = array(); $binary_mask = chunk_split(str_pad(str_pad('', $mask, '1', STR_PAD_LEFT), 32, '0', STR_PAD_RIGHT), 8, '.'); $subnet['bit_mask'] = $binary_mask; for($i = 1; $i <= 4; $i++){ if($mask >= $i * { $mask_octets[$i - 1] = 255; $wilcard_octets[$i - 1] = 0; }else{ $bits_on = substr_count($binary_mask, '1') - (($i - 1) * ; $bits_on = $bits_on < 0 ? 0 : $bits_on; $mask_octets[$i - 1] = bindec(str_pad(str_pad('', $bits_on, '1', STR_PAD_LEFT), 8, '0', STR_PAD_RIGHT)); $wilcard_octets[$i - 1] = 255 - $mask_octets[$i - 1]; $bits_off = 8 - $bits_on; $max_octet_value = bindec(str_pad('', $bits_off, '1', STR_PAD_LEFT)); $next_addr[$i - 1] += $max_octet_value; } } $current_addr[FOURTH_OCTET] += 1; $subnet['mask'] = implode('.', $mask_octets); $subnet['wildcard'] = implode('.', $wilcard_octets); $subnet['broadcast'] = implode('.', $next_addr); $subnet['host_min'] = implode('.', $current_addr); $current_addr = $next_addr; $current_addr[FOURTH_OCTET] -= 1; $subnet['host_max'] = implode('.', $current_addr); for($i = 3; $i > 0; $i--){ if($next_addr[$i] < 255){ $next_addr[$i]++; break; }else{ $next_addr[$i] = 0; } } echo $subnet['addr'].'/'.$mask.'
'; //echo $subnet['bit_mask'].'
'; echo $subnet['mask'].'
'; echo $subnet['wildcard'].'
'; //echo $subnet['broadcast'].'
'; echo $subnet['host_min'].' - '.$subnet['host_max'].'
'; echo '
'; } function printLine($name, $value){ echo "$name: $value
"; } ?>
 
  MENU
 
 
 
 
 
 
 
 
 
 
 
 
 

JETHROX WEB PERSONAL |Copyright © 2009 Derechos reservados Created By JETHROX Email: ishopmor@hotmail.com | 2009. MEXICO - MORELOS
  agregame atu hi5
Tu Página de Inicio
7:05:06
2 de Jul de 2009
administrador de jethrox
Agreganos

Traduci Esta Web Al Idioma Que Necesites


 

 

 

 

 

Gadgets con la tecnología de Google


Get Your Own Player!
  Facebook botón-like
  menu

- inicio
-sube tu foto
-musica gratis
-manuales o tutoriales
-programas
-trucos hotmail
-libro de comentarios
-para hi5 y myspace
-presentacion
-radio
-iniciar secion

-Contador de visitas
-dedica una web atu amorsito
-calculadora de amor
-crea tu nick
generador de nick

  programas
  paginas web
Agreganos
descarga video de youtube









<
  correos
Correo:

soporte.jethrox@hotmail.com

hi5:

jethrox1.hi5.com

my space:

www.myspace.com/jethromaniax

youtube :

www.youtube.com/mrjethroxo

Hoy habia 70295 visitantes¡Aqui en esta página!
;

Firefox navegador recomendado
Subir a Inicio
Este sitio web fue creado de forma gratuita con PaginaWebGratis.es. ¿Quieres también tu sitio web propio?
Registrarse gratis