private int setMIBValue(String var,String val) {
        try {
            int er=0;        
            if((er=checkMIBValue(var, val))!=0) return er;
            if(var.compareToIgnoreCase("IP.DefaultGateway")==0) {
                ((NetworkLayerDevice)current_device).setDefaultGateway(val);
            }
            else if(var.compareToIgnoreCase("IP.Address_Eth0")==0) {
                String a = ((NetworkLayerDevice)current_device).setIPAddress("eth0", val);
//                printInfo(">>>>>>>>>> " + a);
            }
            else if(var.compareToIgnoreCase("IP.subnetMask_Eth0")==0) {
                ((NetworkLayerDevice)current_device).setCustomSubnetMask("eth0", val);
            }
            else if(var.compareToIgnoreCase("SNMP.CommunityName")==0) {
                current_password=val;
            }
        }
        catch(Exception e) {
            //System.out.print(e.toString());
            printInfo("bad value: " + var + " = \"" + val);
            return SNMP.SNMP_ERROR_badValue;
        }
        return 0;
    }