Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 25/11/2013, à 12:15

Crestey

[Résolu] Serveur imprimante planté sur NAS après off/on

Bonjour à Tous,

J'ai un soucis assez bizarre avec mon imprimante HP845C qui est branchée en usb sur mon nas.
Quand je fais off/on sur mon NAS, le serveur d'imprimante ne marche plus.
Par exemple s'il y a une coupure de courant (fréquente ici). Achète donc un onduleur me direz-vous !

Quand c'est planté, si je lance une impression, la file d'impression ne dépile pas.
Pour que l'imprimante fonctionne de nouveau, j'ai remarqué que je peux contourner le problème très bizarrement :
En changeant l'adresse IP du NAS.
voir là :
nas_imagesia-com_dq8m_small.png
je passe de 192.168.0.20 à 192.168.0.27, puis de nouveau à 192.168.0.20, et elle remarche !

Je pense que le problème vient du NAS et non de ubuntu, mais à tout hasard, je pose la question sur ce forum.

A vous lire

Dernière modification par Crestey (Le 28/11/2013, à 19:29)


Merci à tous.
Sous Ubuntu/XFCE depuis 2013. Ça fonctionne vraiment très bien.

Hors ligne

#2 Le 28/11/2013, à 09:20

Crestey

Re : [Résolu] Serveur imprimante planté sur NAS après off/on

Bon,
J'ai mis un fil sur un forum dlink.
En fait il suffit que j'appuie sur le bouton "save settings" (sans changer d'adresse comme dit précédemment) pour que l'imprimante re-fonctionne.
Le code derrière cette page web est

<HTML>
<HEAD>
<TITLE>FamilleCrestey</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">    
<META HTTP-EQUIV="Expires" CONTENT="-1">
<script>
var sys_time = (new Date()).getTime(); 
document.write("<link rel=\"STYLESHEET\" type=\"text/css\" href=\"..\/images\/css.css?"+  sys_time+"\">");
document.write("<script language=\"javascript\" src=\"..\/function\/function.js?"+sys_time+"\"><\/script>");
document.write("<script language=\"javascript\" src=\"..\/function\/request.js?"+sys_time+"\"><\/script>");	
document.write("<script language=\"javascript\" src=\"..\/module\/module_function.js?"+sys_time+"\"><\/script>");
</script>
<SCRIPT language=JavaScript>
check_login('1',0);

function ChkLinkSpeed()
{
	var linkspeed='100';

	if(linkspeed==100)
	{
		document.ipForm.speed[0].disabled=false;		//auto
		document.ipForm.speed[1].disabled=false;		//100
		document.ipForm.speed[2].disabled=true;			//1000
	}
}
function doCheckDHCP()
{
	var clear='';
   		if (document.ipForm.IP_type[0].checked || clear==1) 
   		{
   			document.ipForm.f_IP_STATIC_IP.disabled = true;
			document.ipForm.f_IP_STATIC_IP_NETMASK.disabled = true;
			document.ipForm.f_IP_STATIC_IP_GATEWAY.disabled = true;			
   		}
   		else
   		{
   			document.ipForm.f_IP_STATIC_IP.disabled = false;
			document.ipForm.f_IP_STATIC_IP_NETMASK.disabled = false;
			document.ipForm.f_IP_STATIC_IP_GATEWAY.disabled = false;
   		}

}

function validateKey(str)
{
	for (var i=0; i<str.length; i++)
	{
		if ( (str.charAt(i) >= '0' && str.charAt(i) <= '9') ||(str.charAt(i) == '.' ) )
			continue;
		return 0;
	}
	return 1;
}

function getDigit(str, num)
{
	i=1;
	if ( num != 1 )
	{
		while (i!=num && str.length!=0)
		{
			if ( str.charAt(0) == '.' )
			{
				i++;
			}
			str = str.substring(1);
		}
		if ( i!=num )
			return -1;
	}
	for (i=0; i<str.length; i++)
	{
		if ( str.charAt(i) == '.' )
		{
			str = str.substring(0, i);
			break;
		}
	}
	if ( str.length == 0)
		return -1;
	d = parseInt(str, 10);
	return d;
}

function checkDigitRange(str, num, min, max)
{
	d = getDigit(str,num);
	if ( d > max || d < min )
		return false;
	return true;
}


//check ip
function IP2V(ip) {	
	var re=/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])(\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])){3}$/;
	if(re.test(ip)) {
			return true;
	}
	else
	{
			return false;
	}	
}
function CheckIPRange(ip)
{
	var	dhcp_server='0';
	if(dhcp_server!=1)	//dhcp server enable
		return 0;

	var dhcp_start='192.168.0.2';
	var dhcp_end='192.168.0.254';
	dhcp_start=dhcp_start.split(".");
	dhcp_end=dhcp_end.split(".");
	var ipaddr=ip.split(".");

	if(ipaddr[0]==dhcp_start[0] && ipaddr[1]==dhcp_start[1] && ipaddr[2]==dhcp_start[2])
	{
		if((parseInt(ipaddr[3],10) >= parseInt(dhcp_start[3],10)) )
		{
			if(parseInt(ipaddr[3],10) <= parseInt(dhcp_end[3],10) )
			return 1;
	}
	}
}
function doCheckALL()
{
	if(document.ipForm.IP_type[1].checked)
	{
		if( document.ipForm.f_IP_STATIC_IP.value == "" )
		{
			alert("Please enter an IP address");
			document.ipForm.f_IP_STATIC_IP.select();
			document.ipForm.f_IP_STATIC_IP.focus();
			return;
		}
		if ( validateKey( document.ipForm.f_IP_STATIC_IP.value ) == 0 )
		{
			alert("Only numbers can be used as IP address values.");
			document.ipForm.f_IP_STATIC_IP.select();
			document.ipForm.f_IP_STATIC_IP.focus();
			return;
		}
		if ( !checkDigitRange(document.ipForm.f_IP_STATIC_IP.value, 1, 1, 223) )
		{
			alert("Invalid IP address. The first set of numbers must range between 1 and 223.");
			document.ipForm.f_IP_STATIC_IP.select();
			document.ipForm.f_IP_STATIC_IP.focus();
			return;
		}
		if ( !checkDigitRange(document.ipForm.f_IP_STATIC_IP.value, 2, 0, 255) )
		{
			alert("Invalid IP address. The second set of numbers must range between 0 and 255.");
			document.ipForm.f_IP_STATIC_IP.select();
			document.ipForm.f_IP_STATIC_IP.focus();
			return;
		}
		if ( !checkDigitRange(document.ipForm.f_IP_STATIC_IP.value, 3, 0, 255) )
		{
			alert("Invalid IP address. The third set of numbers must range between 0 and 255.");
			document.ipForm.f_IP_STATIC_IP.select();
			document.ipForm.f_IP_STATIC_IP.focus();
			return;
		}
		if ( !checkDigitRange(document.ipForm.f_IP_STATIC_IP.value, 4, 1, 254) )
		{
			alert("Invalid IP address. The fourth set of numbers must range between 1 and 254.");
			document.ipForm.f_IP_STATIC_IP.select();
			document.ipForm.f_IP_STATIC_IP.focus();
			return;
		}
		
		if ( IP2V(document.ipForm.f_IP_STATIC_IP.value) == false){
				alert("Not a valid IP address.");
				document.ipForm.f_IP_STATIC_IP.select();
				document.ipForm.f_IP_STATIC_IP.focus();
				return;
		}
		
		if( document.ipForm.f_IP_STATIC_IP_NETMASK.value == "" )
		{
			alert("Please enter a subnet mask.");
			document.ipForm.f_IP_STATIC_IP_NETMASK.select();
			document.ipForm.f_IP_STATIC_IP_NETMASK.focus();
			return;
		}
		if ( validateKey( document.ipForm.f_IP_STATIC_IP_NETMASK.value ) == 0 )
		{
			alert("Only numbers can be used in a subnet mask");
			document.ipForm.f_IP_STATIC_IP_NETMASK.select();
			document.ipForm.f_IP_STATIC_IP_NETMASK.focus();
			return;
		}
		if ( !checkDigitRange(document.ipForm.f_IP_STATIC_IP_NETMASK.value, 1, 1, 255) )
		{
			alert("Invalid subnet mask. The first set of numbers must range between 1 and 255.");
			document.ipForm.f_IP_STATIC_IP_NETMASK.select();
			document.ipForm.f_IP_STATIC_IP_NETMASK.focus();
			return;
		}
		if ( !checkDigitRange(document.ipForm.f_IP_STATIC_IP_NETMASK.value, 2, 0, 255) )
		{
			alert("Invalid subnet mask. The second set of numbers must range between 0 and 255.");
			document.ipForm.f_IP_STATIC_IP_NETMASK.select();
			document.ipForm.f_IP_STATIC_IP_NETMASK.focus();
			return;
		}
		if ( !checkDigitRange(document.ipForm.f_IP_STATIC_IP_NETMASK.value, 3, 0, 255) )
		{
			alert("Invalid subnet mask. The third set of numbers must range between 0 and 255.");
			document.ipForm.f_IP_STATIC_IP_NETMASK.select();
			document.ipForm.f_IP_STATIC_IP_NETMASK.focus();
			return;
		}
		if ( !checkDigitRange(document.ipForm.f_IP_STATIC_IP_NETMASK.value, 4, 0, 254) )
		{
			alert("Invalid subnet mask. The fourth set of numbers must range between 0 and 254.");
			document.ipForm.f_IP_STATIC_IP_NETMASK.select();
			document.ipForm.f_IP_STATIC_IP_NETMASK.focus();
			return;
		}
		
		if ( IP2V(document.ipForm.f_IP_STATIC_IP_NETMASK.value) == false){
				alert("Not a valid IP address.");
				document.ipForm.f_IP_STATIC_IP_NETMASK.select();
				document.ipForm.f_IP_STATIC_IP_NETMASK.focus();
				return;
		}
		
		if( document.ipForm.f_IP_STATIC_IP_GATEWAY.value != "" )
		{
			if ( validateKey( document.ipForm.f_IP_STATIC_IP_GATEWAY.value ) == 0 )
			{
				alert("Only numbers can be used as gateway IP addresses.");
				document.ipForm.f_IP_STATIC_IP_GATEWAY.select();
				document.ipForm.f_IP_STATIC_IP_GATEWAY.focus();
				return;
			}
			if ( !checkDigitRange(document.ipForm.f_IP_STATIC_IP_GATEWAY.value, 1, 1, 223) )
			{
				alert("Invalid gateway IP address. The first set of numbers must range between 1 and 223.");
				document.ipForm.f_IP_STATIC_IP_GATEWAY.select();
				document.ipForm.f_IP_STATIC_IP_GATEWAY.focus();
				return;
			}
			if ( !checkDigitRange(document.ipForm.f_IP_STATIC_IP_GATEWAY.value, 2, 0, 255) )
			{
				alert("Invalid gateway IP address. The second set of numbers must range between 0 and 255.");
				document.ipForm.f_IP_STATIC_IP_GATEWAY.select();
				document.ipForm.f_IP_STATIC_IP_GATEWAY.focus();
				return;
			}
			if ( !checkDigitRange(document.ipForm.f_IP_STATIC_IP_GATEWAY.value, 3, 0, 255) )
			{
				alert("Invalid gateway IP address. The third set of numbers must range between 0 and 255.");
				document.ipForm.f_IP_STATIC_IP_GATEWAY.select();
				document.ipForm.f_IP_STATIC_IP_GATEWAY.focus();
				return;
			}
			if ( !checkDigitRange(document.ipForm.f_IP_STATIC_IP_GATEWAY.value, 4, 0, 255) )
			{
				alert("Invalid gateway IP address. The fourth set of numbers must range between 0 and 255.");
				document.ipForm.f_IP_STATIC_IP_GATEWAY.select();
				document.ipForm.f_IP_STATIC_IP_GATEWAY.focus();
				return;
			}
			
			if ( IP2V(document.ipForm.f_IP_STATIC_IP_GATEWAY.value) == false){
				alert("Not a valid IP address.");
				document.ipForm.f_IP_STATIC_IP_GATEWAY.select();
				document.ipForm.f_IP_STATIC_IP_GATEWAY.focus();
				return;
			}
		}
		
		var tmp_ip = document.ipForm.f_IP_STATIC_IP.value;
		var tmp_netmask = document.ipForm.f_IP_STATIC_IP_NETMASK.value;
		var tmp_gateway = document.ipForm.f_IP_STATIC_IP_GATEWAY.value;
		var tmp_dns1 = document.ipForm.f_IP_IP_DNS1.value;
		var tmp_dns2 = document.ipForm.f_IP_IP_DNS2.value;
		
		var tmp_flag = ip_same_net(tmp_ip,tmp_netmask,tmp_gateway,tmp_dns1,tmp_dns2);
		
		if ( tmp_flag == 2)
		{
			alert("You enter incorrect TCP/IP configuration. Please try again.");
			return;
		}
		else if (tmp_flag == 3)
		{
			alert("IP address input error. Please try again.");
			document.ipForm.f_IP_STATIC_IP.select();
			document.ipForm.f_IP_STATIC_IP.focus();
			return;
		}
		else if(tmp_flag == 4)
		{
			alert("You enter incorrect TCP/IP configuration. Please try again.");
			document.ipForm.f_IP_STATIC_IP_GATEWAY.select();
			document.ipForm.f_IP_STATIC_IP_GATEWAY.focus();
			return;
		}
		else if(tmp_flag ==5)
		{
			alert("You enter incorrect TCP/IP configuration. Please try again.");
			document.ipForm.f_IP_IP_DNS1.select();
			document.ipForm.f_IP_IP_DNS1.focus();
			return;			
		}
		else if(tmp_flag == 6)
		{
			alert("You enter incorrect TCP/IP configuration. Please try again.");
			document.ipForm.f_IP_IP_DNS2.select();
			document.ipForm.f_IP_IP_DNS2.focus();
			return;				
		}
		else if(tmp_flag == 7)
		{
			alert("You enter incorrect TCP/IP configuration. Please try again.");
			document.ipForm.f_IP_STATIC_IP_NETMASK.select();
			document.ipForm.f_IP_STATIC_IP_NETMASK.focus();
			return;				
	}
		
		var device_ip = document.ipForm.f_IP_STATIC_IP.value;
		var device_mask = document.ipForm.f_IP_STATIC_IP_NETMASK.value;
		var s_ip= '192.168.0.2';
		var dhcp_flag= '0';
		if(Check_DHCP_range(device_ip,device_mask,s_ip)==0 && dhcp_flag==1)
		{
			alert('Not a valid IP address.');
			document.ipForm.f_IP_STATIC_IP.select();
			document.ipForm.f_IP_STATIC_IP.focus();
			return;
		}
	}
		
		if( document.ipForm.f_IP_IP_DNS1.value != "" )
		{
			if ( validateKey( document.ipForm.f_IP_IP_DNS1.value ) == 0 )
			{
				alert("Only numbers can be used as DNS IP addresses.");
				document.ipForm.f_IP_IP_DNS1.select();
				document.ipForm.f_IP_IP_DNS1.focus();
				return;
			}
		if ( !checkDigitRange(document.ipForm.f_IP_IP_DNS1.value, 1, 1, 223) )
			{
				alert("Invalid DNS IP address. The first set of numbers must range between 1 and 223.");
				document.ipForm.f_IP_IP_DNS1.select();
				document.ipForm.f_IP_IP_DNS1.focus();
				return;
			}
			if ( !checkDigitRange(document.ipForm.f_IP_IP_DNS1.value, 2, 0, 255) )
			{
				alert("Invalid DNS IP address. The second set of numbers must range between 0 and 255.");
				document.ipForm.f_IP_IP_DNS1.select();
				document.ipForm.f_IP_IP_DNS1.focus();
				return;
			}
			if ( !checkDigitRange(document.ipForm.f_IP_IP_DNS1.value, 3, 0, 255) )
			{
				alert("Invalid DNS IP address. The third set of numbers must range between 0 and 255.");
				document.ipForm.f_IP_IP_DNS1.select();
				document.ipForm.f_IP_IP_DNS1.focus();
				return;
			}
		if ( !checkDigitRange(document.ipForm.f_IP_IP_DNS1.value, 4, 0, 255) )
			{
				alert("Invalid DNS IP address. The fourth set of numbers must range between 0 and 255.");
				document.ipForm.f_IP_IP_DNS1.select();
				document.ipForm.f_IP_IP_DNS1.focus();
				return;
			}
			
			if ( IP2V(document.ipForm.f_IP_IP_DNS1.value) == false)
			{
				alert("Not a valid IP address.");
				document.ipForm.f_IP_IP_DNS1.select();
				document.ipForm.f_IP_IP_DNS1.focus();
				return;
			}
		}

		if( document.ipForm.f_IP_IP_DNS2.value != "" )
		{
			if ( validateKey( document.ipForm.f_IP_IP_DNS2.value ) == 0 )
			{
				alert("Only numbers can be used as DNS IP addresses.");
				document.ipForm.f_IP_IP_DNS2.select();
				document.ipForm.f_IP_IP_DNS2.focus();
				return;
			}
		if ( !checkDigitRange(document.ipForm.f_IP_IP_DNS2.value, 1, 1, 223) )
			{
				alert("Invalid DNS IP address. The first set of numbers must range between 1 and 223.");
				document.ipForm.f_IP_IP_DNS2.select();
				document.ipForm.f_IP_IP_DNS2.focus();
				return;
			}
			if ( !checkDigitRange(document.ipForm.f_IP_IP_DNS2.value, 2, 0, 255) )
			{
				alert("Invalid DNS IP address. The second set of numbers must range between 0 and 255.");
				document.ipForm.f_IP_IP_DNS2.select();
				document.ipForm.f_IP_IP_DNS2.focus();
				return;
			}
			if ( !checkDigitRange(document.ipForm.f_IP_IP_DNS2.value, 3, 0, 255) )
			{
				alert("Invalid DNS IP address. The third set of numbers must range between 0 and 255.");
				document.ipForm.f_IP_IP_DNS2.select();
				document.ipForm.f_IP_IP_DNS2.focus();
				return;
			}
		if ( !checkDigitRange(document.ipForm.f_IP_IP_DNS2.value, 4, 0, 255) )
			{
				alert("Invalid DNS IP address. The fourth set of numbers must range between 0 and 255.");
				document.ipForm.f_IP_IP_DNS2.select();
				document.ipForm.f_IP_IP_DNS2.focus();
				return;
			}
			
			if ( IP2V(document.ipForm.f_IP_IP_DNS2.value) == false){
				alert("Not a valid IP address.");
				document.ipForm.f_IP_IP_DNS2.select();
				document.ipForm.f_IP_IP_DNS2.focus();
				return;
			}
			
		}		
		
		if (document.ipForm.IP_type[0].checked)
		{
			document.ipForm.f_IP_DHCP_ENABLE.value=document.ipForm.IP_type[0].value
		}
		else
		{
			document.ipForm.f_IP_DHCP_ENABLE.value=document.ipForm.IP_type[1].value
		}
		
		var request_url="/goform/Check_Netmask?";
		if ( parseInt(document.ipForm.f_IP_DHCP_ENABLE.value) == 0)
		{
			var send_value="f_ip="+ document.ipForm.f_IP_STATIC_IP.value +"&f_netmask=" + document.ipForm.f_IP_STATIC_IP_NETMASK.value;
		}
		else
		{
			var send_value="f_ip=none&f_netmask=none";
		}	
	
		makeRequest(request_url,true,2,"","",send_value);	
		
}

function chk_set_netmask_status(http_request)
{
	if (http_request.readyState == 4) 
	{
		if (http_request.status == 200) 
		{	
			if ( http_request.responseText == "1")	
			{
				alert("Not a valid NetMask.");
				return;
			}
			else
				document.ipForm.submit();
		}
	}
}	

function SetLinkSpeed()
{
	
	if(document.ipForm.speed[2].checked)
	{
		if (!confirm("If you set the link speed to 1000Mbps but are connected to a 100Mbps network, you will lose connection to the DNS-323. Only use this setting if you are having trouble communicating with the DNS-323 on a fully gigabit (1000Mbps) network."))
			return;
	}
	
	 {
	if(document.ipForm.speed[0].checked)
	{
		document.Speed_Form.f_speed.value=document.ipForm.speed[0].value
	}	
	else if (document.ipForm.speed[1].checked)
	{
		document.Speed_Form.f_speed.value=document.ipForm.speed[1].value
	}
	else
	{
		document.Speed_Form.f_speed.value=document.ipForm.speed[2].value
	}

	document.Speed_Form.submit();
}
}
function JF(flag)
{
	if (flag == 1)
	{
		document.Jumbo_Frame.f_mtu.disabled=false;
		document.getElementById("chamber1").style.display = "";
	}
	else if (flag == 0)
	{
		document.Jumbo_Frame.f_mtu.disabled=true;
		document.getElementById("chamber1").style.display = "none";
	}
}
function JF_check()
{
	document.Jumbo_Frame.submit();
}
var MENU_ARRAY = new Array(); 
function init_menu()
{
	MENU_ARRAY.push('<a href="/goform/mainMenu">WIZARD</a>');
	
	MENU_ARRAY.push('LAN');
	
	MENU_ARRAY.push('<a href="/goform/adv_samba">DEVICE</a>');
	
	MENU_ARRAY.push('<a href="/goform/formLogout">LOGOUT</a>');
	
	Get_Install_module(1,"");
}
</SCRIPT>
<BODY bgColor=#757575 leftMargin=0 topMargin=1 rightMargin=0 onload="init_menu(),ChkLinkSpeed(),doCheckDHCP(),JF('0');">
<TABLE id=header_container cellSpacing=0 cellPadding=5 width=838 align=center border=0>
	<TBODY>
  <TR>
    <TD width="100%">Product Page:&nbsp;DNS-323</TD>
    <TD noWrap align=right>&nbsp;</TD>
    <TD noWrap align=right>Firmware Version:&nbsp;1.10</TD></TR></TBODY></TABLE>
<TABLE id=topnav_container cellSpacing=0 cellPadding=0 width=838 align=center border=0>
  <TBODY>
  <TR>
    <TD vAlign=center align=middle><map name="FPMap0"><area href="http://www.dlink.com.tw/" shape="rect" coords="0, 1, 153, 88" target="_blank"></map><IMG border="0" src="../images/wlan_masthead.gif" usemap="#FPMap0"></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=1 cellPadding=2 width=838 align=center bgColor=#ffffff border=0>
  <TBODY>
  	<TR id=topnav_container>
    <TD><IMG src="../images/short_modnum.jpg"></TD>
	    <TD id=topnavon><a href="/goform/mainMenu">SETUP</a></TD>
	    <TD id=topnavoff><a href="/goform/adv_account">ADVANCED</a></TD>
	    <TD id=topnavoff><a href="/goform/adv_modify_admin">TOOLS</a></TD>
	    <TD id=topnavoff><a href="/goform/adv_status">STATUS</a></TD>
	    <TD id=topnavoff><a href="../help/help.asp">SUPPORT</a></TD>
    </TBODY></TABLE>
    
<TABLE id=main_container cellSpacing=0 cellPadding=2 align=center width=838 height="100%">
  <TBODY>
  <TR valign="top">
    <TD id=sidenav_container vAlign=top align=right width=125>
      <TABLE cellSpacing=0 cellPadding=0 border=0>
        <TBODY>
        <TR>
          <TD id=sidenav_container>
            <DIV id=sidenav><UL>
              <LI>
              <DIV><a href="/goform/mainMenu">WIZARD</a></DIV>
              <LI>
              <DIV id=sidenavoff>LAN</DIV>
              <LI>
              <DIV><a href="/goform/adv_samba">DEVICE</a></DIV>
              <LI>
              <DIV><a href="/goform/formLogout">LOGOUT</a></DIV>
              </UL></DIV>
           </TD>
           </TR>
           </TBODY>
           </TABLE></TD>
    
             
    <TD id=maincontent_container vAlign=top>
      <DIV id=maincontent>
      <DIV id=box_header>
      <H1>LAN SETTINGS : </H1>
        <p>The LAN Settings allows you to configure the Link Speed and to configure the IP address as a DHCP client or Static IP.</p>
        <p>Enabling Jumbo Frames allows you to increase the Frame size from 3,000 to 9000 bytes which increase network throughput and performance. Standard Ethernet Frames are 1,500 bytes in size.</p>

      <p>
      <input type="button" value="Save Settings" name="b1" onclick="doCheckALL();">
      <input type="button" value="Don't Save Settings" name="b2" onclick="document.forms[0].reset();doCheckDHCP();"></DIV>
      <DIV class=box>
      <H2>LAN SETTINGS : </H2>
<FORM id=form1 name=ipForm action=/goform/CfgIP method=POST>      
      <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse;" bordercolor="#111111" id="AutoNumber1" width="451" height="215">
        <tr>
                <td width="44" height="25">&nbsp;</td>
                <td width="599" height="25" colspan="2">Speed 100 Mbps</td>
                                  </tr>
        <tr>
                <td width="44" height="25">&nbsp;</td>
                <td width="599" height="25" colspan="2">Link Speed
  <input type="radio" name="speed" value="0" checked>Auto
  <input type="radio" name="speed" value="100" >100
  <input type="radio" name="speed" value="1000" >1000
  <input type="button" value="Apply" name="B1" onclick="SetLinkSpeed()">
 				</td>
                                  </tr>
        <tr>
                                    <td width="44" height="25">&nbsp;</td>
                                    <td width="599" height="25" colspan="2"><hr></td>
                                  </tr>
        <tr>
                                    <td width="44" height="25">&nbsp;</td>
                                    <td width="599" height="25" colspan="2">
  <p>
  <input type="radio" value="1" name="IP_type" onclick="doCheckDHCP(this.form);" >DHCP Client</p>
                                    </td>
                                  </tr>
        <tr>
                                    <td width="44" height="26">&nbsp;</td>
                                    <td width="599" height="26" colspan="2">
  <input type="radio" name="IP_type" value="0" onclick="doCheckDHCP(this.form);" checked>Static IP<input type="hidden" name="f_IP_DHCP_ENABLE" size="22"></td>
                                  </tr>
                             
      <tr>
                                    <td width="44" height="30">&nbsp;</td>
                                    <td width="200" height="30" align="left">&nbsp;IP Address :</td>
                                    <td width="399" height="30">&nbsp;<INPUT maxLength=15 name=f_IP_STATIC_IP size=22 value="192.168.0.20"></td>
                                  </tr>
        <tr>
                                    <td width="44" height="30">&nbsp;</td>
                                    <td width="200" height="30">&nbsp;Subnet Mask :</td>
                                    <td width="399" height="30">&nbsp;<INPUT maxLength=15 name=f_IP_STATIC_IP_NETMASK size=22 value="255.255.0.0"></td>
                                  </tr>
        <tr>
                                    <td width="44" height="30">&nbsp;</td>
                                    <td width="200" height="30" align="left">&nbsp;Gateway :</td>
                                    <td width="399" height="30">&nbsp;<INPUT maxLength=15 name=f_IP_STATIC_IP_GATEWAY size=22 value="192.168.0.254"></td>
                                  </tr>
        <tr>
                                    <td width="44" height="30">&nbsp;</td>
                                    <td width="200" height="30" align="left">&nbsp;DNS1 :</td>
                                    <td width="399" height="30">&nbsp;<INPUT maxLength=15 name=f_IP_IP_DNS1 size=22 value="212.27.40.240"></td>
                                  </tr>
        <tr>
                                    <td width="44" height="30">&nbsp;</td>
                                    <td width="200" height="30">&nbsp;DNS2 :</td>
                                    <td width="399" height="30" style="border-style:none; border-width:medium; "> 
                                      &nbsp;<INPUT maxLength=15 name=f_IP_IP_DNS2 size=22 value="212.27.40.241"></td>
                                  </tr>
                                  <tr><td colspan="3">
                                   <input type="hidden" name="f_dhcpsvr_ENABLE" size="16" value="0">
                                 	<input type="hidden" name="f_s_ip" size="16" value="192.168.0.2">
                                 	<input type="hidden" name="f_e_ip" size="16" value="192.168.0.254">
                                 	<input type="hidden" name="f_lease" size="16" value="604800">
                                 </td>
                                  </tr>
      </table>
</FORM>
      </DIV>

            <form name="Jumbo_Frame" method="POST" action="/goform/Set_JumboFrame">
      <DIV class=box>
      <H2>JUMBO FRAME SETTINGS : </H2>
      <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse;" bordercolor="#111111" id="AutoNumber1" width="451">
        <tr>
                <td width="44" height="30">&nbsp;</td>
                <td width="187" height="25">Status  :</td>
                <td width="412" height="25">
							 	<input type="radio" value="1" name="f_jf" onclick="JF(1)" >Enable
                      <input type="radio" value="0" name="f_jf" onclick="JF(0)" checked>Disable</td>
        </tr>
         <tr id="chamber1" style="display">
                <td width="44" height="30">&nbsp;</td>
                <td width="187" height="25">MTU :</td>
                <td width="412" height="25">
                			 	&nbsp;<select size="1" name="f_mtu">
                 <option value="3000" >3000</option>
                 <option value="4000" >4000</option>
                 <option value="5000" >5000</option>
                 <option value="6000" >6000</option>
                 <option value="7000" >7000</option>
                 <option value="8000" >8000</option>
                 <option value="9000" >9000</option>
                </select>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
               </td>
        </tr>
         <tr id="chamber1" style="display">
                <td width="44" height="30">&nbsp;</td>
                <td width="187" height="25">&nbsp;</td>
                <td width="412" height="25">
                                <input type="button" value="Apply" name="B3" onclick="JF_check()" class="BtnSubmit2"></td>
        </tr>
       </table> 	
       </div> 	
       </form>
      </DIV>
      
      </DIV></TD>
    <TD id=sidehelp_container vAlign=top align=left width=150>
      <TABLE cellSpacing=0 cellPadding=2 bgColor=#ffffff border=0>
        <TBODY>
        <TR><TD id=help_text><STRONG>Helpful Hints..</STRONG><BR></TD></TR>
        <TR><TD id=help_text>
          A Static IP is recommended if you will be using the FTP server.<BR></TD></TR>	
        	
        	</TBODY></TABLE></TD></TR></TBODY></TABLE>
        	
<TABLE cellSpacing=1 cellPadding=2 width=838 align=center bgColor=#ffffff border=0>
  <TBODY>
  <TR id=footer_container>
    <TD align=middle>&nbsp;&nbsp;<IMG src="../images/STORAGE.jpg"></TD>
   </TR></TBODY></TABLE><BR>
<DIV align=center>Copyright &copy; 2006-2011 D-Link Corporation/D-Link Systems, Inc.</DIV><BR>

<form method="POST" name="Speed_Form" action="/goform/SetLinkSpeed">
  <p><input type="hidden" name="f_speed" size="20"></p>
</form>
</BODY>
<HEAD>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">    
<META HTTP-EQUIV="Expires" CONTENT="-1">
</HEAD>
</HTML>

ça ne m'inspire pas trop ... mais c'est bien une partie de ce code qui me débloque l'imprimante et rien d'autre.

Pour investiguer, quelqu'un peut-il me dire la commande qui testerait la présence d'une imprimante réseau ?
Soit depuis le PC, soit depuis le NAS (accessible avec telnet) ?

A vous lire

Dernière modification par Crestey (Le 28/11/2013, à 09:23)


Merci à tous.
Sous Ubuntu/XFCE depuis 2013. Ça fonctionne vraiment très bien.

Hors ligne

#3 Le 28/11/2013, à 19:28

Crestey

Re : [Résolu] Serveur imprimante planté sur NAS après off/on

J'ai trouvé !
ça fait des mois que je cherche, mais j'ai enfin trouvé.
La solution : Il faut passer du firmware 1.10 au firmware 1.09 du NAS
C'est un bug introduit entre la version 1.09 et 1.10 du firmware du NAS
Maintenant ça fonctionne même après une coupure de courant.
Mon imprimante est toujours opérationnelle.
Si quelqu'un a le même problème, les firmwares sont téléchageables là http://support.dlink.com/ProductInfo.aspx?m=DNS-323.

Dernière modification par Crestey (Le 24/06/2015, à 13:07)


Merci à tous.
Sous Ubuntu/XFCE depuis 2013. Ça fonctionne vraiment très bien.

Hors ligne